summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-03-28 09:41:45 +0100
committerJens Axboe <axboe@kernel.dk>2024-04-01 11:53:37 -0600
commit7a324d8389a1a1b6713eb689af6b457c72140ad6 (patch)
treea7f99b2ae6cc88d67b82dc303d3fe6f665cc06b6 /block/blk-cgroup.c
parentc9418adfbabadf7530c034a52e54b31705568f95 (diff)
downloadlinux-stable-7a324d8389a1a1b6713eb689af6b457c72140ad6.tar.gz
linux-stable-7a324d8389a1a1b6713eb689af6b457c72140ad6.tar.bz2
linux-stable-7a324d8389a1a1b6713eb689af6b457c72140ad6.zip
blk-cgroup: use bio_list_merge_init
Use bio_list_merge_init instead of open coding bio_list_merge and bio_list_init. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20240328084147.2954434-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r--block/blk-cgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index bdbb557feb5a..8598e4591e79 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -218,8 +218,7 @@ static void blkg_async_bio_workfn(struct work_struct *work)
/* as long as there are pending bios, @blkg can't go away */
spin_lock(&blkg->async_bio_lock);
- bio_list_merge(&bios, &blkg->async_bios);
- bio_list_init(&blkg->async_bios);
+ bio_list_merge_init(&bios, &blkg->async_bios);
spin_unlock(&blkg->async_bio_lock);
/* start plug only when bio_list contains at least 2 bios */