[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] blktap: blktap kthread must respond to freeze requests.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1182429813 -3600 # Node ID cb50d25a94686a6e34e953422286f9b4504e3e56 # Parent 02a46885bd90a4d936338c135023b511318c7aa2 blktap: blktap kthread must respond to freeze requests. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- drivers/xen/blkback/blkback.c | 4 ++-- drivers/xen/blktap/blktap.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff -r 02a46885bd90 -r cb50d25a9468 drivers/xen/blkback/blkback.c --- a/drivers/xen/blkback/blkback.c Thu Jun 21 13:41:22 2007 +0100 +++ b/drivers/xen/blkback/blkback.c Thu Jun 21 13:43:33 2007 +0100 @@ -208,9 +208,9 @@ int blkif_schedule(void *arg) printk(KERN_DEBUG "%s: started\n", current->comm); while (!kthread_should_stop()) { - if(try_to_freeze()) + if (try_to_freeze()) continue; - + wait_event_interruptible( blkif->wq, blkif->waiting_reqs || kthread_should_stop()); diff -r 02a46885bd90 -r cb50d25a9468 drivers/xen/blktap/blktap.c --- a/drivers/xen/blktap/blktap.c Thu Jun 21 13:41:22 2007 +0100 +++ b/drivers/xen/blktap/blktap.c Thu Jun 21 13:43:33 2007 +0100 @@ -1057,6 +1057,9 @@ int tap_blkif_schedule(void *arg) printk(KERN_DEBUG "%s: started\n", current->comm); while (!kthread_should_stop()) { + if (try_to_freeze()) + continue; + wait_event_interruptible( blkif->wq, blkif->waiting_reqs || kthread_should_stop()); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |