summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-12-16 08:20:31 -0700
committerJens Axboe <axboe@kernel.dk>2022-12-16 09:18:09 -0700
commit53eab8e76667b124615a943a033cdf97c80c242a (patch)
tree543742bad15785312f5ba30a23e9bbee7cc1dacf /include
parentd36a9ea5e7766961e753ee38d4c331bbe6ef659b (diff)
downloadlinux-stable-53eab8e76667b124615a943a033cdf97c80c242a.tar.gz
linux-stable-53eab8e76667b124615a943a033cdf97c80c242a.tar.bz2
linux-stable-53eab8e76667b124615a943a033cdf97c80c242a.zip
block: don't clear REQ_ALLOC_CACHE for non-polled requests
Since commit: b99182c501c3 ("bio: add pcpu caching for non-polling bio_put") we support bio caching for IRQ based IO as well, hence there's no need to manually clear REQ_ALLOC_CACHE if we disable polling on a request. Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index b231a665682a..22078a28d7cb 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -782,8 +782,7 @@ static inline void bio_set_polled(struct bio *bio, struct kiocb *kiocb)
static inline void bio_clear_polled(struct bio *bio)
{
- /* can't support alloc cache if we turn off polling */
- bio->bi_opf &= ~(REQ_POLLED | REQ_ALLOC_CACHE);
+ bio->bi_opf &= ~REQ_POLLED;
}
struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev,