Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755925Ab0HPTEP (ORCPT ); Mon, 16 Aug 2010 15:04:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37792 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755775Ab0HPTEN (ORCPT ); Mon, 16 Aug 2010 15:04:13 -0400 Date: Mon, 16 Aug 2010 15:02:03 -0400 From: Mike Snitzer To: Tejun Heo Cc: jaxboe@fusionio.com, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, hch@lst.de, James.Bottomley@suse.de, tytso@mit.edu, chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp, dm-devel@redhat.com, vst@vlnb.net, jack@suse.cz, rwheeler@redhat.com, hare@suse.de, neilb@suse.de, rusty@rustcorp.com.au, mst@redhat.com, Tejun Heo Subject: Re: [PATCH 5/5] dm: implement REQ_FLUSH/FUA support Message-ID: <20100816190203.GA22299@redhat.com> References: <1281977523-19335-1-git-send-email-tj@kernel.org> <1281977523-19335-6-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1281977523-19335-6-git-send-email-tj@kernel.org> User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1844 Lines: 49 On Mon, Aug 16 2010 at 12:52pm -0400, Tejun Heo wrote: > From: Tejun Heo > > This patch converts dm to support REQ_FLUSH/FUA instead of now > deprecated REQ_HARDBARRIER. What tree does this patch apply to? I know it doesn't apply to v2.6.36-rc1, e.g.: http://git.kernel.org/linus/708e929513502fb0 > For bio-based dm, ... > * -EOPNOTSUPP retry logic dropped. That logic wasn't just about retries (at least not in the latest kernel). With commit 708e929513502fb0 the -EOPNOTSUPP checking also serves to optimize the barrier+discard case (when discards aren't supported). > For request-based dm, > > * Nothing much changes. It just needs to handle FLUSH requests as > before. It would be beneficial to advertise FUA capability so that > it can propagate FUA flags down to member request_queues instead of > sequencing it as WRITE + FLUSH at the top queue. Can you expand on that TODO a bit? What is the mechanism to propagate FUA down to a DM device's members? I'm only aware of propagating member devices' features up to the top-level DM device's request-queue (not the opposite). Are you saying that establishing the FUA capability on the top-level DM device's request_queue is sufficient? If so then why not make the change? > Lightly tested linear, stripe, raid1, snap and crypt targets. Please > proceed with caution as I'm not familiar with the code base. This is concerning... if we're to offer more comprehensive review I think we need more detail on what guided your changes rather than details of what the resulting changes are. Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/