From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Thornber Subject: Re: [PATCH for-3.14 14/20] dm thin: requeue bios to DM core if no_free_space and in read-only mode Date: Mon, 6 Jan 2014 14:35:24 +0000 Message-ID: <20140106143524.GG6766@debian> References: <1387582653-13647-1-git-send-email-snitzer@redhat.com> <1387582653-13647-15-git-send-email-snitzer@redhat.com> 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: <1387582653-13647-15-git-send-email-snitzer@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids On Fri, Dec 20, 2013 at 06:37:27PM -0500, Mike Snitzer wrote: > +static void handle_unserviceable_bio(struct pool *pool, struct bio *bio) > +{ > + /* > + * When pool is read-only, no cell locking is needed because > + * nothing is changing. > + */ > + WARN_ON_ONCE(get_pool_mode(pool) != PM_READ_ONLY); > + > + if (pool->no_free_space) > + retry_on_resume(bio); > + else > + bio_io_error(bio); > +} Could we rename no_free_space please? (requeue_unserviceable_bios?)