diff options
author | 2019-12-19 17:40:10 +0000 | |
---|---|---|
committer | 2019-12-19 17:40:10 +0000 | |
commit | babb761de1ba2d43bc3717c713c02b0d14e11db2 (patch) | |
tree | b91dc29659e146a7f8c9888c966cb7aea48344d4 /sys/kern/kern_physio.c | |
parent | wider list width to adjust for previous; (diff) | |
download | wireguard-openbsd-babb761de1ba2d43bc3717c713c02b0d14e11db2.tar.xz wireguard-openbsd-babb761de1ba2d43bc3717c713c02b0d14e11db2.zip |
Convert infinite sleeps to {m,t}sleep_nsec(9).
ok visa@
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 7c7bc6d960a..47962ccf039 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_physio.c,v 1.43 2015/03/14 03:38:50 jsg Exp $ */ +/* $OpenBSD: kern_physio.c,v 1.44 2019/12/19 17:40:11 mpi Exp $ */ /* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */ /*- @@ -163,7 +163,7 @@ physio(void (*strategy)(struct buf *), dev_t dev, int flags, /* [wait for the transfer to complete] */ while ((bp->b_flags & B_DONE) == 0) - tsleep(bp, PRIBIO + 1, "physio", 0); + tsleep_nsec(bp, PRIBIO + 1, "physio", INFSLP); /* Mark it busy again, so nobody else will use it. */ bp->b_flags |= B_BUSY; |