[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Stupidly forgot there is a separate waitqueue for free pending request
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 8031bf331472d3150ac3ef934922a5cc05e22c84 # Parent 937336f98c47148e82f5624a33334db3b4a40417 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@xxxxxxxxxxxxx> diff -r 937336f98c47 -r 8031bf331472 linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c Thu Apr 6 09:20:32 2006 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c Thu Apr 6 10:13:33 2006 @@ -225,8 +225,11 @@ 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); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |