From: Jens Axboe Date: Fri, 16 Dec 2022 15:20:31 +0000 (-0700) Subject: block: don't clear REQ_ALLOC_CACHE for non-polled requests X-Git-Tag: v6.6.17~5578^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53eab8e76667b124615a943a033cdf97c80c242a;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/include/linux/bio.h b/include/linux/bio.h index b231a66..22078a2 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,