aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-10-22 10:58:33 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-10-22 10:58:33 +0200
commit005a1d15f5a6b2bb4ada80349513effbf22b4588 (patch)
treee9baa3b1ced078041ac98c1179eb51a18cc37569 /drivers/block/xen-blkfront.c
parent4d1529043705737ba442f5a0048043718e601ce4 (diff)
xen-blkfront: disable barrier/flush write support
The driver doesn't handle empty flushes. Disable barrier/flush write support until this is fixed up. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index f2ffc46644d..739b4c1416e 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1067,8 +1067,15 @@ static void blkfront_connect(struct blkfront_info *info)
* If there are barriers, then we use flush.
*/
info->feature_flush = 0;
+
+ /*
+ * The driver doesn't properly handled empty flushes, so
+ * lets disable barrier support for now.
+ */
+#if 0
if (!err && barrier)
info->feature_flush = REQ_FLUSH;
+#endif
err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size);
if (err) {