This patch addresses a bio reference count problem encountered while debugging a different, use-after-free bug with the fio test below. The original use-after-free bug is still hit however. [global] filename=/dev/nvme0n1 rw=randread bs=4k direct=1 time_based=1 randrepeat=1 gtod_reduce=1 [fiotest] fio nvme.fio --readonly --ioengine=io_uring --iodepth 1024 --fixedbufs --hipri --numjobs=$1 --runtime=$2 Bijan Mottahedeh (1): block: Manage bio references so the bio persists until necessary fs/block_dev.c | 78 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 38 deletions(-) -- 1.8.3.1