Skip to content

Commit 53eab8e

Browse files
committed
block: don't clear REQ_ALLOC_CACHE for non-polled requests
Since commit: b99182c ("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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent d36a9ea commit 53eab8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/bio.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,7 @@ static inline void bio_set_polled(struct bio *bio, struct kiocb *kiocb)
782782

783783
static inline void bio_clear_polled(struct bio *bio)
784784
{
785-
/* can't support alloc cache if we turn off polling */
786-
bio->bi_opf &= ~(REQ_POLLED | REQ_ALLOC_CACHE);
785+
bio->bi_opf &= ~REQ_POLLED;
787786
}
788787

789788
struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev,

0 commit comments

Comments
 (0)