WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] blktap: blktap kthread must respond t

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] blktap: blktap kthread must respond to freeze requests.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Jun 2007 16:42:40 -0700
Delivery-date: Thu, 21 Jun 2007 16:41:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] blktap: blktap kthread must respond to freeze requests., Xen patchbot-linux-2.6.18-xen <=