Re: [PATCH v2 12/13] xfs: random buffer write failure errortag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 25, 2020 at 10:38:33AM -0700, Christoph Hellwig wrote:
> On Wed, Apr 22, 2020 at 01:54:28PM -0400, Brian Foster wrote:
> > @@ -1289,6 +1289,12 @@ xfs_buf_bio_end_io(
> >  	struct bio		*bio)
> >  {
> >  	struct xfs_buf		*bp = (struct xfs_buf *)bio->bi_private;
> > +	struct xfs_mount	*mp = bp->b_mount;
> > +
> > +	if (!bio->bi_status &&
> > +	    (bp->b_flags & XBF_WRITE) && (bp->b_flags & XBF_ASYNC) &&
> > +	    XFS_TEST_ERROR(false, mp, XFS_ERRTAG_BUF_IOERROR))
> > +		bio->bi_status = errno_to_blk_status(-EIO);
> 
> Please just use BLK_STS_IOERR directly here.
> 

Ok, fixed.

Brian




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux