Stupidly forgot there is a separate waitqueue for free pending request

structures in blkback. Fix my changes to blkif_schedule().

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-06 11:13:33 +01:00
1 parent 4e52e7ef09
commit 3f7c9e7d7e
1 file changed
+5 -2
@@ -225,8 +225,11 @@ int blkif_schedule(void *arg)
while (!kthread_should_stop()) {
wait_event_interruptible(
blkif->wq,
(atomic_read(&blkif->io_pending) &&
!list_empty(&pending_free)) ||
atomic_read(&blkif->io_pending) ||
kthread_should_stop());
wait_event_interruptible(
pending_free_wq,
!list_empty(&pending_free) ||
kthread_should_stop());
atomic_set(&blkif->io_pending, 0);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.