[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 d7eec5562bb650d81773bf4a4a61eb46bb9d9b85
# Parent  9c547feca093f57649d00136e1e30265fa7b1e6c
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 9c547feca093 -r d7eec5562bb6 
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:32:27 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Thu Apr  6 
10:14:06 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.