diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-09 05:04:23 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-09 05:04:23 +0000 |
commit | 0bbefdb25c320c2f266457ff149c676ca5f69bee (patch) | |
tree | 1b080c38aef02273797f8a8dc05dddb785a2b0ea /sys/kern/kern_bufq.c | |
parent | 94645183db727f105968ec39b103dc3c25606dc1 (diff) |
save the bufq pointer from the buf before we turn it loose so it won't
change on us. also, remove unused second arg to bufq_wait.
from pedro at bitrig via david hill.
ok beck kettenis
Diffstat (limited to 'sys/kern/kern_bufq.c')
-rw-r--r-- | sys/kern/kern_bufq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_bufq.c b/sys/kern/kern_bufq.c index 911fe1b5f3d..4cba9f146b2 100644 --- a/sys/kern/kern_bufq.c +++ b/sys/kern/kern_bufq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_bufq.c,v 1.28 2014/07/12 18:43:32 tedu Exp $ */ +/* $OpenBSD: kern_bufq.c,v 1.29 2015/01/09 05:04:22 tedu Exp $ */ /* * Copyright (c) 2010 Thordur I. Bjornsson <thib@openbsd.org> * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -239,7 +239,7 @@ bufq_drain(struct bufq *bq) } void -bufq_wait(struct bufq *bq, struct buf *bp) +bufq_wait(struct bufq *bq) { if (bq->bufq_hi) { assertwaitok(); |