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>
Wed, 23 Mar 2016 14:35:57 +0000 (08:35 -0600)
commit88fa2b6e810a78b3648ffe75e2ebf173e1e6dee5
treef6ad24368d9ab1f6988e7d04902637abbaadd65a
parentbf0542ae6d5d9b5913c7866c0cc93ae6949eb974
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