diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 10:15:21 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-12 16:00:39 -0600 |
commit | bfd230ac4e592f3c03cabdf1e69f170a70aaeef7 (patch) | |
tree | 8d6b7102506ab8c88268c995ced1f35daa66edf7 /drivers | |
parent | 519a7e16f9bea99c77fbf549c4b3ef7916199a33 (diff) | |
download | op-kernel-dev-bfd230ac4e592f3c03cabdf1e69f170a70aaeef7.zip op-kernel-dev-bfd230ac4e592f3c03cabdf1e69f170a70aaeef7.tar.gz |
xen-blkfront: switch to using blk_queue_write_cache()
Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/xen-blkfront.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 6405b65..ca13df8 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -998,7 +998,8 @@ static const char *flush_info(unsigned int feature_flush) static void xlvbd_flush(struct blkfront_info *info) { - blk_queue_flush(info->rq, info->feature_flush); + blk_queue_write_cache(info->rq, info->feature_flush & REQ_FLUSH, + info->feature_flush & REQ_FUA); pr_info("blkfront: %s: %s %s %s %s %s\n", info->gd->disk_name, flush_info(info->feature_flush), "persistent grants:", info->feature_persistent ? |