From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: RAID-10 keeps aborting Date: Tue, 4 Jun 2013 10:36:53 -0700 Message-ID: References: <51AC1440.7020505@zytor.com> <51AC3283.4000403@zytor.com> <51ACBAA0.40604@zytor.com> <51ACD511.4030604@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: "Martin K. Petersen" Cc: "H. Peter Anvin" , linux-raid List-Id: linux-raid.ids On Mon, Jun 3, 2013 at 11:35 AM, Martin K. Petersen wrote: >>>>>> "hpa" == H Peter Anvin writes: > > hpa> OK, so the device here says don't do this again, but fails the > hpa> request anyway expecting the block device to pick up the slack. > > Yes, the block layer function will resort to writing out zeroes directly > in this case. > > MD should not consider a rejected WRITE SAME a failure. What should md do in the partial success case? Seems to be a layering violation to assume that the block layer will retry with zeroes. Maybe just act on BIO_QUIET to retry the write with REQ_WRITE_SAME cleared? -- Dan