mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
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);
|
||||
|
||||