skd_main: switch to using blk_queue_write_cache()

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Jens Axboe 2016-03-30 10:11:42 -06:00
parent 177febc843
commit 6975f7327f
1 changed files with 1 additions and 1 deletions

View File

@ -4412,7 +4412,7 @@ static int skd_cons_disk(struct skd_device *skdev)
disk->queue = q;
q->queuedata = skdev;
blk_queue_flush(q, REQ_FLUSH | REQ_FUA);
blk_queue_write_cache(q, true, true);
blk_queue_max_segments(q, skdev->sgs_per_request);
blk_queue_max_hw_sectors(q, SKD_N_MAX_SECTORS);