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>
Thu, 12 Aug 2021 17:27:02 +0000 (11:27 -0600)
commitcd36a5ff3ca84616f91bfc2eb1095b995529b72b
tree90c329455c0286901780fc80cf5bbc234098662f
parent1cbbd31c4ada4dfab9619ef4d46d66b484b6de37
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