Skip to content

Commit 7a324d8

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent c9418ad commit 7a324d8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

block/blk-cgroup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ static void blkg_async_bio_workfn(struct work_struct *work)
218218

219219
/* as long as there are pending bios, @blkg can't go away */
220220
spin_lock(&blkg->async_bio_lock);
221-
bio_list_merge(&bios, &blkg->async_bios);
222-
bio_list_init(&blkg->async_bios);
221+
bio_list_merge_init(&bios, &blkg->async_bios);
223222
spin_unlock(&blkg->async_bio_lock);
224223

225224
/* start plug only when bio_list contains at least 2 bios */

0 commit comments

Comments
 (0)