Skip to content

Commit 005a1d1

Browse files
author
Jens Axboe
committed
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>
1 parent 4d15290 commit 005a1d1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/block/xen-blkfront.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,15 @@ static void blkfront_connect(struct blkfront_info *info)
10671067
* If there are barriers, then we use flush.
10681068
*/
10691069
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
10701076
if (!err && barrier)
10711077
info->feature_flush = REQ_FLUSH;
1078+
#endif
10721079

10731080
err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size);
10741081
if (err) {

0 commit comments

Comments
 (0)