mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
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>
This commit is contained in:
parent
4d15290437
commit
005a1d15f5
@ -1067,8 +1067,15 @@ static void blkfront_connect(struct blkfront_info *info)
|
|||||||
* If there are barriers, then we use flush.
|
* If there are barriers, then we use flush.
|
||||||
*/
|
*/
|
||||||
info->feature_flush = 0;
|
info->feature_flush = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The driver doesn't properly handled empty flushes, so
|
||||||
|
* lets disable barrier support for now.
|
||||||
|
*/
|
||||||
|
#if 0
|
||||||
if (!err && barrier)
|
if (!err && barrier)
|
||||||
info->feature_flush = REQ_FLUSH;
|
info->feature_flush = REQ_FLUSH;
|
||||||
|
#endif
|
||||||
|
|
||||||
err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size);
|
err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user