Jens Axboe 270a1c913e 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 <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-08-23 13:45:15 -06:00
..
2021-08-07 10:26:21 -07:00
2021-08-23 13:44:43 -06:00
2021-08-17 20:17:34 -06:00
2021-06-17 15:51:20 +02:00
2020-03-17 20:55:21 +01:00
2021-08-17 20:17:34 -06:00
2021-05-09 13:25:14 -07:00
2021-08-23 13:45:15 -06:00
2021-07-09 12:05:33 -07:00
2021-07-09 12:05:33 -07:00
2021-07-27 19:35:47 -06:00
2021-07-09 12:05:33 -07:00
2020-01-06 20:59:04 -07:00