block: support uncached IO buffered-uncached.8
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Nov 2024 22:24:56 +0000 (15:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 1 Dec 2024 22:55:25 +0000 (15:55 -0700)
commit700d51f5ecb5e7e4db133bc3e0e8dcfa199c7e4c
tree627fc35c03a1268cb7e290687b41a58e027763ae
parentb09fdfa5d7d5c4a79fb91e47b539c410eac89436
block: support uncached IO

Add a bio helper for deferring uncached writes to workqueue, like what
is done for bios that contain folios that need marking as dirty. The
read side of block fops is already fine, only the write needs special
handling to avoid IRQ context for uncached write completions.

Enable uncached buffered IO to block devices by setting FOP_UNCACHED.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bdev.c
block/bio.c
block/fops.c
fs/buffer.c
include/linux/bio.h
include/linux/blk_types.h