From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Thornber Subject: Re: [PATCH] dm-bufio Date: Mon, 17 Oct 2011 12:14:43 +0100 Message-ID: <20111017111442.GG13963@ubuntu> References: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: dm-devel@redhat.com, Mike Snitzer , "Alasdair G. Kergon" List-Id: dm-devel.ids On Fri, Oct 14, 2011 at 03:14:34PM -0400, Mikulas Patocka wrote: @@ -999,15 +1013,19 @@ again: * someone is doing some writes simultaneously with us --- in * this case, stop dropping the lock. */ if (dropped_lock) goto again; } wake_up(&c->free_buffer_wait); dm_bufio_unlock(c); - a = xchg(&c->async_write_error, 0); + if (likely(!c->async_write_error)) + a = 0; + else + a = xchg(&c->async_write_error, 0); f = dm_bufio_issue_flush(c); I didn't change this. Is it also fixing a preexisting issue?