From: Alasdair G Kergon Subject: Re: [PATCH] dm linear: disable WRITE SAME if it fails Date: Sat, 31 May 2014 16:05:17 +0100 Message-ID: <20140531150517.GJ29705@agk-dp.fab.redhat.com> References: <53042F91.4050201@huawei.com> <53899812.50403@huawei.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: <53899812.50403@huawei.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: alex chen Cc: Kiyoshi Ueda , Milan Broz , Mike Snitzer , Mike Anderson , christophe varoqui , dm-devel@redhat.com, Jun'ichi Nomura , Joseph Qi , Alasdair Kergon List-Id: dm-devel.ids On Sat, May 31, 2014 at 04:51:30PM +0800, alex chen wrote: > The original commit f84cb8a46a771f36a04a02c61ea635c968ed5f6a("dm mpath: > disable WRITE SAME if it fails") disables WRITE SAME in the DM multipath > device if it fails, but when the DM linear device stacks ontop of the > multipath device it doesn't help. > this patch adds DM linear end_io method to catch WRITE SAME errors and > disables WRITE SAME in the DM linear device's queue_limits if an > underlying device disables it. How does your patch address striped targets? Shouldn't this code be taken out of mpath and moved to dm.c and applied to all targets (both bio and rq-based, at least where WRITE SAME is supported)? Alasdair