#define PRIO_SD_DEV_ACQUIRE 4 /* dev.acquire_mutex */
#define PRIO_SD_DEV_ACCESS 5 /* dev.m_mutex */
#define PRIO_SD_VOL_LIST 10 /* vol_list_lock */
+#define PRIO_SD_READ_VOL_LIST 12 /* read_vol_list */
#define PRIO_SD_DEV_SPOOL 14 /* dev.spool_mutex */
#endif
static dlist *vol_list = NULL;
static brwlock_t vol_list_lock;
static dlist *read_vol_list = NULL;
-static pthread_mutex_t read_vol_lock = PTHREAD_MUTEX_INITIALIZER;
+static bthread_mutex_t read_vol_lock = BTHREAD_MUTEX_PRIORITY(PRIO_SD_READ_VOL_LIST);
/* Forward referenced functions */
static void free_vol_item(VOLRES *vol);