-/* $OpenBSD: ffs_softdep.c,v 1.144 2019/07/19 00:24:31 cheloha Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.145 2019/11/25 11:33:51 mpi Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
*/
while (softdep_worklist_busy) {
softdep_worklist_req += 1;
- tsleep(&softdep_worklist_req, PRIBIO, "softflush", 0);
+ tsleep_nsec(&softdep_worklist_req, PRIBIO, "softflush", INFSLP);
softdep_worklist_req -= 1;
}
softdep_worklist_busy = -1;
timeout_add(&proc_waiting_timeout, tickdelay > 2 ? tickdelay : 2);
s = FREE_LOCK_INTERLOCKED(&lk);
- (void) tsleep((caddr_t)&proc_waiting, PPAUSE, "softupdate", 0);
+ tsleep_nsec(&proc_waiting, PPAUSE, "softupdate", INFSLP);
ACQUIRE_LOCK_INTERLOCKED(&lk, s);
proc_waiting -= 1;
if (islocked == 0)
return (0);
bp->b_flags |= B_WANTED;
s = FREE_LOCK_INTERLOCKED(&lk);
- tsleep((caddr_t)bp, PRIBIO + 1, "sdsdty", 0);
+ tsleep_nsec(bp, PRIBIO+1, "sdsdty", INFSLP);
ACQUIRE_LOCK_INTERLOCKED(&lk, s);
return (-1);
}
while (vp->v_numoutput) {
vp->v_bioflag |= VBIOWAIT;
s = FREE_LOCK_INTERLOCKED(&lk);
- tsleep((caddr_t)&vp->v_numoutput, PRIBIO + 1, "drain_output", 0);
+ tsleep_nsec(&vp->v_numoutput, PRIBIO+1, "drain_output", INFSLP);
ACQUIRE_LOCK_INTERLOCKED(&lk, s);
}
if (!islocked)
-/* $OpenBSD: ufs_quota.c,v 1.45 2019/10/06 16:24:14 beck Exp $ */
+/* $OpenBSD: ufs_quota.c,v 1.46 2019/11/25 11:33:51 mpi Exp $ */
/* $NetBSD: ufs_quota.c,v 1.8 1996/02/09 22:36:09 christos Exp $ */
/*
continue;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "chkdq", 0);
+ tsleep_nsec(dq, PINOD+1, "chkdq", INFSLP);
}
dq->dq_curblocks += change;
dq->dq_flags |= DQ_MOD;
continue;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "chkdq", 0);
+ tsleep_nsec(dq, PINOD+1, "chkdq", INFSLP);
}
if (dq->dq_curblocks >= change)
dq->dq_curblocks -= change;
continue;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "chkiq", 0);
+ tsleep_nsec(dq, PINOD+1, "chkiq", INFSLP);
}
dq->dq_curinodes++;
dq->dq_flags |= DQ_MOD;
continue;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "chkiq", 0);
+ tsleep_nsec(dq, PINOD+1, "chkiq", INFSLP);
}
if (dq->dq_curinodes > 0)
dq->dq_curinodes--;
dq = ndq;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "setquota", 0);
+ tsleep_nsec(dq, PINOD+1, "setquota", INFSLP);
}
/*
* Copy all but the current values.
dq = ndq;
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+1, "setuse", 0);
+ tsleep_nsec(dq, PINOD+1, "setuse", INFSLP);
}
/*
* Reset time limit if have a soft limit and were
vn_lock(dqvp, LK_EXCLUSIVE | LK_RETRY);
while (dq->dq_flags & DQ_LOCK) {
dq->dq_flags |= DQ_WANT;
- (void) tsleep(dq, PINOD+2, "dqsync", 0);
+ tsleep_nsec(dq, PINOD+2, "dqsync", INFSLP);
if ((dq->dq_flags & DQ_MOD) == 0) {
if (vp != dqvp)
VOP_UNLOCK(dqvp);