lkml.org 
[lkml]   [2010]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromJeremy Fitzhardinge <>
Subject[PATCH 06/16] xen/blkfront: revalidate after setting capacity
DateTue, 20 Jul 2010 13:42:14 -0700
From: K. Y. Srinivasan <ksrinivasan@novell.com>

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
---
drivers/block/xen-blkfront.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 3426704..50b2952 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -943,6 +943,7 @@ static void blkfront_connect(struct blkfront_info *info)
printk(KERN_INFO "Setting capacity to %Lu\n",
sectors);
set_capacity(info->gd, sectors);
+ revalidate_disk(info->gd);

/* fall through */
case BLKIF_STATE_SUSPENDED:
--
1.7.1.1


\
 
 \ /
  Last update: 2010-07-20 22:49    [from the cache]
©2003-2010