Mmsg1(dev->errmsg, _("Unable to init mutex: ERR=%s\n"), be.bstrerror(errstat));
Jmsg0(jcr, M_ERROR_TERM, 0, dev->errmsg);
}
+ /* Ensure that we respect this order in P/V operations */
+ bthread_mutex_set_priority(&dev->m_mutex, PRIO_SD_DEV_ACCESS);
+ bthread_mutex_set_priority(&dev->spool_mutex, PRIO_SD_DEV_SPOOL);
+ bthread_mutex_set_priority(&dev->acquire_mutex, PRIO_SD_DEV_ACQUIRE);
#ifdef xxx
if ((errstat = rwl_init(&dev->lock)) != 0) {
berrno be;
/* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */
tries = 10;
} else {
- tries = 0;
+ tries = 1;
}
results = get_memory(4000);
/* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */
tries = 10;
} else {
- tries = 0;
+ tries = 1;
}
results = get_memory(4000);