xfs
[Top] [All Lists]

Re: linux-next: manual merge of the block tree with the xfs tree

To: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Subject: Re: linux-next: manual merge of the block tree with the xfs tree
From: Roger Willcocks <roger@xxxxxxxxxxxxxxxx>
Date: Wed, 02 Sep 2015 14:34:51 +0100
Cc: Jens Axboe <axboe@xxxxxxxxx>, David Jeffery <djeffery@xxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, Ben Myers <bpm@xxxxxxx>, linux-next@xxxxxxxxxxxxxxx, Christoph Hellwig <hch@xxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150902230342.125e23ce@xxxxxxxxxxxxxxxx>
References: <20150902121649.7a686b6c@xxxxxxxxxxxxxxxx> <C57DF728-E46C-433C-AA9D-209557D795E2@xxxxxxxxxxxxxxxx> <20150902230342.125e23ce@xxxxxxxxxxxxxxxx>
On Wed, 2015-09-02 at 23:03 +1000, Stephen Rothwell wrote:
> Hi Roger,
> 
> On Wed, 2 Sep 2015 10:45:29 +0100 Roger Willcocks <roger@xxxxxxxxxxxxxxxx> 
> wrote:
> >
> > On 2 Sep 2015, at 03:16, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> > 

> > > ++        if (!ioend->io_error)
> > > ++                ioend->io_error = bio->bi_error;

> > 
> > This is incorrect; it can clear an earlier error status. It should probably 
> > read:
> > 
> >     if (!ioend->io_error && bio->bi_error)
> >             ioend->io_error = bio->bi_error;
> 
> Thanks, I will use that from tomorrow.
> 

Huh, now I've had my coffee, that extra check doesn't add anything.
(There's no harm done in assigning zero to io_error if it's already
zero.) Apologies for the noise.

-- 
Roger Willcocks <roger@xxxxxxxxxxxxxxxx>

<Prev in Thread] Current Thread [Next in Thread>