From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alasdair G Kergon Subject: Re: your mail Date: Thu, 20 Oct 2011 01:57:25 +0100 Message-ID: <20111020005725.GV24527@agk-dp.fab.redhat.com> 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, thornber@redhat.com List-Id: dm-devel.ids On Wed, Oct 19, 2011 at 08:17:37PM -0400, Mikulas Patocka wrote: > The next one adds a conditional resched (Alasdair > agreed on it --- it should be later put into general Linux headers). Indeed, this part: > +#ifdef CONFIG_PREEMPT_VOLUNTARY > +#define dm_bufio_cond_resched() \ > +do { \ > + if (unlikely(need_resched())) \ > + _cond_resched(); \ > +} while (0) > +#else > +#define dm_bufio_cond_resched() do { } while (0) > +#endif doesn't really belong in a dm file. Alasdair