diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 10:19:17 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-12 16:00:39 -0600 |
commit | f935a8ce0a60acf0a7fe4da8d2a1e5a70c598e55 (patch) | |
tree | f336cf0dbc0b76e7bd71867656f6bcaf27d384fd /arch/um | |
parent | fec3ff5d1eef8d81b2922deb4eb5a5e84a93bf4c (diff) | |
download | linux-stable-f935a8ce0a60acf0a7fe4da8d2a1e5a70c598e55.tar.gz linux-stable-f935a8ce0a60acf0a7fe4da8d2a1e5a70c598e55.tar.bz2 linux-stable-f935a8ce0a60acf0a7fe4da8d2a1e5a70c598e55.zip |
um: 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 'arch/um')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 39ba20755e03..17e96dc29596 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -862,7 +862,7 @@ static int ubd_add(int n, char **error_out) goto out; } ubd_dev->queue->queuedata = ubd_dev; - blk_queue_flush(ubd_dev->queue, REQ_FLUSH); + blk_queue_write_cache(ubd_dev->queue, true, false); blk_queue_max_segments(ubd_dev->queue, MAX_SG); err = ubd_disk_register(UBD_MAJOR, ubd_dev->size, n, &ubd_gendisk[n]); |