From: David Woodhouse Subject: Re: [PATCH 3/7] [BLOCK] Add 'discard' request handling Date: Sun, 10 Aug 2008 07:32:40 +0100 Message-ID: <1218349960.5063.17.camel@pmac.infradead.org> References: <1218299181.26926.88.camel@pmac.infradead.org> <1218299451.26926.102.camel@pmac.infradead.org> <87iqu9rkh2.fsf@devron.myhome.or.jp> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Jens Axboe , Andrew Morton , Ric Wheeler , linux-fsdevel@vger.kernel.org, gilad@codefidence.com, matthew@wil.cx To: OGAWA Hirofumi Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:45258 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106AbYHJGdP (ORCPT ); Sun, 10 Aug 2008 02:33:15 -0400 In-Reply-To: <87iqu9rkh2.fsf@devron.myhome.or.jp> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, 2008-08-10 at 05:39 +0900, OGAWA Hirofumi wrote: > Maybe, this is bio_discard(bio) != bio_discard(rq->bio)? Because it > seems to say bio_discard(bio) == blk_empty_barrier(rq) can merge, > rq_mergeable(rq) already checked barrier before this though... Yeah. It doesn't matter at the moment, as you say, but it's probably cleaner to make it bio_discard(). That's what I was thinking as I typed it anyway, I think. I've changed it in the git tree. -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation