bdi: introduce BDI_CAP_SYNCHRONOUS_IO
authorMinchan Kim <[email protected]>
Thu, 16 Nov 2017 01:33:00 +0000 (17:33 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:02 +0000 (18:21 -0800)
commit23c47d2ada9f96731492a67b28c0072715075baa
treedbe8a9322eab448997e27b19b1b39b235eaddd2a
parente447a0151f7ce8dd884fea48279274bd64434c29
bdi: introduce BDI_CAP_SYNCHRONOUS_IO

As discussed at

  https://lkml.kernel.org/r/<20170728165604[email protected]>

someday we will remove rw_page().  If so, we need something to detect
such super-fast storage on which synchronous IO operations like the
current rw_page are always a win.

Introduces BDI_CAP_SYNCHRONOUS_IO to indicate such devices.  With it, we
could use various optimization techniques.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Ilya Dryomov <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Huang Ying <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/brd.c
drivers/block/zram/zram_drv.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
include/linux/backing-dev.h