diff options
| author | Jens Axboe <[email protected]> | 2021-08-12 17:42:53 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-08-23 19:45:15 +0000 |
| commit | 270a1c913ebd745ebee716af5f7215e1c2b30cc0 (patch) | |
| tree | d1cc0c8163721a335687aac07d14a401df439fd2 /lib/netdev-notifier-error-inject.c | |
| parent | block: use the percpu bio cache in __blkdev_direct_IO (diff) | |
| download | kernel-270a1c913ebd745ebee716af5f7215e1c2b30cc0.tar.gz kernel-270a1c913ebd745ebee716af5f7215e1c2b30cc0.zip | |
block: provide bio_clear_hipri() helper
Any case that turns off REQ_HIPRI must also clear BIO_PERCPU_CACHE,
as non-polled IO may complete through hard/soft IRQ and hence isn't
safe for our polled bio alloc cache.
Provide a helper that does just that, and use it in the merging code as
well if we split a bio and turn off polling.
Fixes: be863b9e4348 ("block: clear BIO_PERCPU_CACHE flag if polling isn't supported")
Reported-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
