Skip to content

Commit

Permalink
xen-blkfront: disable barrier/flush write support
Browse files Browse the repository at this point in the history
The driver doesn't handle empty flushes. Disable barrier/flush
write support until this is fixed up.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Oct 22, 2010
1 parent 4d15290 commit 005a1d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 005a1d1

Please sign in to comment.