[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190612070110.GA11707@infradead.org>
Date: Wed, 12 Jun 2019 00:01:10 -0700
From: Christoph Hellwig <hch@...radead.org>
To: John Dorminy <jdorminy@...hat.com>
Cc: Mike Snitzer <snitzer@...hat.com>, Jens Axboe <axboe@...nel.dk>,
NeilBrown <neilb@...e.com>, linux-block@...r.kernel.org,
device-mapper development <dm-devel@...hat.com>,
Milan Broz <gmazyland@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: block: be more careful about status in __bio_chain_endio
On Tue, Jun 11, 2019 at 10:56:42PM -0400, John Dorminy wrote:
> I believe the second of these might, but is not guaranteed to,
> preserve the first error observed in a child; I believe if you want to
> definitely save the first error you need an atomic.
Is there any reason not to simply use a cmpxchg? Yes, it is a
relatively expensive operation, but once we are chaining bios we are out
of the super hot path anyway. We do something similar in xfs and iomap
already.
Powered by blists - more mailing lists