aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-10-22 04:58:33 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-10-22 04:58:33 -0400
commit005a1d15f5a6b2bb4ada80349513effbf22b4588 (patch)
treee9baa3b1ced078041ac98c1179eb51a18cc37569 /drivers/block
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')
-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 f2ffc46644df..739b4c1416ea 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)
1067 * If there are barriers, then we use flush. 1067 * If there are barriers, then we use flush.
1068 */ 1068 */
1069 info->feature_flush = 0; 1069 info->feature_flush = 0;
1070
1071 /*
1072 * The driver doesn't properly handled empty flushes, so
1073 * lets disable barrier support for now.
1074 */
1075#if 0
1070 if (!err && barrier) 1076 if (!err && barrier)
1071 info->feature_flush = REQ_FLUSH; 1077 info->feature_flush = REQ_FLUSH;
1078#endif
1072 1079
1073 err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size); 1080 err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size);
1074 if (err) { 1081 if (err) {