Re: [PATCH] xfs: buffer ->bi_end_io function requires irq-safe lock

Brian Foster
2016-04-15T18:28:34Z

On Fri, Apr 15, 2016 at 11:08:20AM -0700, Christoph Hellwig wrote:
> How about just doing a cmpxchg on bi_error?

Hmm, good idea. Something like this I take it..?

if (bio->bi_error)
cmpxchg(&bp->b_io_error, 0, bio->bi_error);

Brian