block: clear BIO_PERCPU_CACHE flag if polling isn't supported
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 16:19:06 +0000 (10:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:44:51 +0000 (13:44 -0600)
commitbe863b9e4348a791e360d25611a1bdde2c9595ed
tree3765fb0cd03d4229fca996ddf3e97bea70ac8156
parentbe4d234d7aebbfe0c233bc20b9cdef7ab3408ff4
block: clear BIO_PERCPU_CACHE flag if polling isn't supported

The bio alloc cache relies on the fact that a polled bio will complete
in process context, clear the cacheable flag if we disable polling
for a given bio.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c