summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-01-30 13:18:32 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-01-30 13:18:32 -0800
commit03610bd6b53cc5e42ce767faddd489220f0011ef (patch)
treed295c11fc2acf6fc1b9835fef94cbcef576c10c5 /drivers/md
parent2b54ac9e0cf8986e138736840f20d537db22ce79 (diff)
parent4da7c5c3ec34d839bba6e035c3d05c447a2f9d4f (diff)
Merge tag 'block-6.19-20260130' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull block fixes from Jens Axboe: - Fix for an accounting leak in bcache that's been there forever, and a related dead code removal - Revert of a fix for rnbd that went into this series, but depends on other changes that are staged for 7.0 - NVMe pull request via Keith: - TCP target completion race condition fix (Ming) - DMA descriptor cleanup fix (Roger) * tag 'block-6.19-20260130' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux: bcache: fix I/O accounting leak in detached_dev_do_request bcache: remove dead code in detached_dev_do_request nvme-pci: DMA unmap the correct regions in nvme_free_sgls Revert "rnbd-clt: fix refcount underflow in device unmap path" nvmet: fix race in nvmet_bio_done() leading to NULL pointer dereference
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/request.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index a02aecac05cd..3fa3b13a410f 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -1107,17 +1107,13 @@ static void detached_dev_do_request(struct bcache_device *d,
if (bio_op(orig_bio) == REQ_OP_DISCARD &&
!bdev_max_discard_sectors(dc->bdev)) {
+ bio_end_io_acct(orig_bio, start_time);
bio_endio(orig_bio);
return;
}
clone_bio = bio_alloc_clone(dc->bdev, orig_bio, GFP_NOIO,
&d->bio_detached);
- if (!clone_bio) {
- orig_bio->bi_status = BLK_STS_RESOURCE;
- bio_endio(orig_bio);
- return;
- }
ddip = container_of(clone_bio, struct detached_dev_io_private, bio);
/* Count on the bcache device */