Patch "block: clear bio->bi_bdev when putting a bio back in the cache" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    block: clear bio->bi_bdev when putting a bio back in the cache

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     block-clear-bio-bi_bdev-when-putting-a-bio-back-in-the-cache.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 11eb695feb636fa5211067189cad25ac073e7fe5 Mon Sep 17 00:00:00 2001
From: Jens Axboe <axboe@xxxxxxxxx>
Date: Fri, 24 Feb 2023 09:59:44 -0700
Subject: block: clear bio->bi_bdev when putting a bio back in the cache

From: Jens Axboe <axboe@xxxxxxxxx>

commit 11eb695feb636fa5211067189cad25ac073e7fe5 upstream.

This isn't strictly needed in terms of correctness, but it does allow
polling to know if the bio has been put already by a different task
and hence avoid polling something that we don't need to.

Cc: stable@xxxxxxxxxxxxxxx
Fixes: be4d234d7aeb ("bio: add allocation cache abstraction")
Reviewed-by: Keith Busch <kbusch@xxxxxxxxxx>
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 block/bio.c |    1 +
 1 file changed, 1 insertion(+)

--- a/block/bio.c
+++ b/block/bio.c
@@ -773,6 +773,7 @@ static inline void bio_put_percpu_cache(
 
 	if ((bio->bi_opf & REQ_POLLED) && !WARN_ON_ONCE(in_interrupt())) {
 		bio->bi_next = cache->free_list;
+		bio->bi_bdev = NULL;
 		cache->free_list = bio;
 		cache->nr++;
 	} else {


Patches currently in stable-queue which might be from axboe@xxxxxxxxx are

queue-6.2/block-don-t-allow-multiple-bios-for-iocb_nowait-issue.patch
queue-6.2/sbitmap-correct-wake_batch-recalculation-to-avoid-po.patch
queue-6.2/blk-mq-avoid-sleep-in-blk_mq_alloc_request_hctx.patch
queue-6.2/ublk_drv-remove-nr_aborted_queues-from-ublk_device.patch
queue-6.2/blk-mq-fix-potential-io-hung-for-shared-sbitmap-per-.patch
queue-6.2/blk-mq-wait-on-correct-sbitmap_queue-in-blk_mq_mark_.patch
queue-6.2/block-clear-bio-bi_bdev-when-putting-a-bio-back-in-the-cache.patch
queue-6.2/ublk_drv-don-t-probe-partitions-if-the-ubq-daemon-is.patch
queue-6.2/trace-blktrace-fix-memory-leak-with-using-debugfs_lo.patch
queue-6.2/io_uring-audit-don-t-log-ioring_op_madvise.patch
queue-6.2/x86-fpu-don-t-set-tif_need_fpu_load-for-pf_io_worker.patch
queue-6.2/blk-cgroup-dropping-parent-refcount-after-pd_free_fn.patch
queue-6.2/block-be-a-bit-more-careful-in-checking-for-null-bdev-while-polling.patch
queue-6.2/block-use-proper-return-value-from-bio_failfast.patch
queue-6.2/block-fix-io-statistics-for-cgroup-in-throttle-path.patch
queue-6.2/block-ublk-check-io-buffer-based-on-flag-need_get_da.patch
queue-6.2/blk-cgroup-synchronize-pd_free_fn-from-blkg_free_wor.patch
queue-6.2/sbitmap-remove-redundant-check-in-__sbitmap_queue_ge.patch
queue-6.2/block-sync-mixed-merged-request-s-failfast-with-1st-.patch
queue-6.2/blk-mq-remove-stale-comment-for-blk_mq_sched_mark_re.patch
queue-6.2/blk-iocost-fix-divide-by-0-error-in-calc_lcoefs.patch
queue-6.2/s390-dasd-fix-potential-memleak-in-dasd_eckd_init.patch
queue-6.2/blk-mq-correct-stale-comment-of-.get_budget.patch
queue-6.2/block-bio-integrity-copy-flags-when-bio_integrity_pa.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux