#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 */
+#define PRIO_SD_ACH_ACCESS 16 /* autochanger lock mutex */
#endif
foreach_alist(dev, res->res_changer.device) {
dev->changer_res = (AUTOCHANGER *)&res->res_changer;
}
- if ((errstat = rwl_init(&res->res_changer.changer_lock)) != 0) {
+ if ((errstat = rwl_init(&res->res_changer.changer_lock,
+ PRIO_SD_ACH_ACCESS)) != 0)
+ {
berrno be;
Jmsg1(NULL, M_ERROR_TERM, 0, _("Unable to init lock: ERR=%s\n"),
be.bstrerror(errstat));