OSDN Git Service

xfs: chain bios the right way around in xfs_rw_bdev
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 15:58:28 +0000 (08:58 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Jul 2019 17:04:16 +0000 (10:04 -0700)
commit488ca3d8d088ec4658c87aaec6a91e98acccdd54
treeb0703c84217d461f235f1658c4711852c81cb05c
parent0df5c39b3e4204b3ed0079d0fa14f3001c6285fe
xfs: chain bios the right way around in xfs_rw_bdev

We need to chain the earlier bios to the later ones, so that
submit_bio_wait waits on the bio that all the completions are
dispatched to.

Fixes: 6ad5b3255b9e ("xfs: use bios directly to read and write the log recovery buffers")
Reported-by: Dave Chinner <david@fromorbit.com>
Tested-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bio_io.c