diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 18:09:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-13 00:00:39 +0200 |
commit | fe8fb75e3a1f6f7fac8dc68024eb0062191fe424 (patch) | |
tree | 637d41f8c01c4bfe48ffe3e8beda0b758bc8885c /drivers/block | |
parent | NVMe: switch to using blk_queue_write_cache() (diff) | |
download | linux-fe8fb75e3a1f6f7fac8dc68024eb0062191fe424.tar.xz linux-fe8fb75e3a1f6f7fac8dc68024eb0062191fe424.zip |
drbd: 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/block')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index fa209773d494..2ba1494b2799 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2761,7 +2761,7 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig q->backing_dev_info.congested_data = device; blk_queue_make_request(q, drbd_make_request); - blk_queue_flush(q, REQ_FLUSH | REQ_FUA); + blk_queue_write_cache(q, true, true); /* Setting the max_hw_sectors to an odd value of 8kibyte here This triggers a max_bio_size message upon first attach or connect */ blk_queue_max_hw_sectors(q, DRBD_MAX_BIO_SIZE_SAFE >> 8); |