block: add ability to flag write back caching on a device
authorJens Axboe <axboe@fb.com>
Wed, 23 Mar 2016 04:43:57 +0000 (22:43 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 28 Mar 2016 15:13:08 +0000 (09:13 -0600)
commit02a4bf1c255280fd79a3b963dd23b0d1af226db1
treeefd8de8776811985b4e8618138d2e90e2693d2da
parent70e858656e7aac6bb945256765dc906807317912
block: add ability to flag write back caching on a device

Add an internal helper and flag for setting whether a queue has
write back caching, or write through (or none). Add a sysfs file
to show this as well, and make it changeable from user space.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-settings.c
block/blk-sysfs.c
include/linux/blkdev.h