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>
Wed, 11 Aug 2021 22:37:11 +0000 (16:37 -0600)
commit9d22a74c61b3015b16d9a0e8b69080a7cefaca7f
tree75c686f1820515abb49c60939dcb74e41a38580b
parenta02f2b023671dc69cceaf65b28692556c65684cc
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c