Skip to content

Commit d6bb046

Browse files
Andreas Gruenbachergregkh
authored andcommitted
Revert "gfs2: Fix use of bio_chain"
commit 469d715 upstream. This reverts commit 8a157e0. That commit incorrectly assumed that the bio_chain() arguments were swapped in gfs2. However, gfs2 intentionally constructs bio chains so that the first bio's bi_end_io callback is invoked when all bios in the chain have completed, unlike bio chains where the last bio's callback is invoked. Fixes: 8a157e0 ("gfs2: Fix use of bio_chain") Cc: stable@vger.kernel.org Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 81dcb27 commit d6bb046

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/lops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static struct bio *gfs2_chain_bio(struct bio *prev, unsigned int nr_iovecs)
485485
new = bio_alloc(prev->bi_bdev, nr_iovecs, prev->bi_opf, GFP_NOIO);
486486
bio_clone_blkg_association(new, prev);
487487
new->bi_iter.bi_sector = bio_end_sector(prev);
488-
bio_chain(prev, new);
488+
bio_chain(new, prev);
489489
submit_bio(prev);
490490
return new;
491491
}

0 commit comments

Comments
 (0)