From: Jim Ramsay Subject: Re: [PATCH] reworked dm-switch target Date: Tue, 11 Sep 2012 09:07:02 -0400 Message-ID: <20120911130702.GA12315@freewill.lab.equallogic.com> References: <20120816070955.GA32526@agk-dp.fab.redhat.com> <20120821163329.GA21395@freewill.lab.equallogic.com> <20120824181444.GC27819@freewill.lab.equallogic.com> <20120907195851.GA30209@freewill.lab.equallogic.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: 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, Jason_Shamberger@dell.com, agk@redhat.com, Kevin_OKelley@dell.com List-Id: dm-devel.ids On Sat, Sep 08, 2012 at 12:35:22PM -0400, Mikulas Patocka wrote: > Your changes are ok, it could be included in the kernel. > > Regarding flushes ... could you please explain how write-back caching > works in your design? We are not actually using write-back caching in our design at all, but assumed that for a general-purpose DM device like dm-switch, some underlying storage may rely on REQ_FLUSH to ensure proper data synchronization, so the switch should do the right thing when required. The code is modeled on dm-stripe. > Is there some write-back cache in the host adapter? No, there is not at this time. > Is there some write-back cache in the individual storage nodes? (i.e. does > the node signal end of I/O before it finishes writing data to the disk) No, there is not at this time. The iSCSI-backed SD devices we are ultimately using do not advertise any write-back cache ('sdparm --get=WCE' returns 0). > Another thing - please resend your code with "Signed-off-by". Read the > meaning of "Signed-off-by" in Documentation/SubmittingPatches, agree to > the terms and append "Signed-off-by: Jim Ramsay " to > the code. It is a legal requirement, so that you certify that the code is > under the open source license and that you have the right to distribute > the code. Will do shortly. Thanks! -- Jim Ramsay