From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: RAID-10 keeps aborting Date: Thu, 06 Jun 2013 11:36:36 -0700 Message-ID: <51B0D6B4.6030802@zytor.com> References: <51AC1440.7020505@zytor.com> <51AC3283.4000403@zytor.com> <51ACBAA0.40604@zytor.com> <51ACD511.4030604@zytor.com> <51AE2A8C.4080508@zytor.com> <51AE3441.3000208@zytor.com> <51AEA4FE.3060900@zytor.com> <20130606142747.1fc17b7f@ jlaw-desktop.mno.stratus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130606142747.1fc17b7f@jlaw-desktop.mno.stratus.com> Sender: linux-raid-owner@vger.kernel.org To: Joe Lawrence Cc: "Martin K. Petersen" , Dan Williams , linux-raid List-Id: linux-raid.ids On 06/06/2013 11:27 AM, Joe Lawrence wrote: > On Wed, 5 Jun 2013 12:29:32 -0700 (PDT) > "Martin K. Petersen" wrote: > >>>>>>> "hpa" == H Peter Anvin writes: >> >> hpa> Yuck, this suddenly got complex. Perhaps WRITE SAME should simply >> hpa> be disabled on raid1/raid10 until this can be addressed? >> >> Yeah, maybe. > > Martin, > > I'm looking at the changes in raid1.c and am confused as to why we did > this in the first place (commit c8dc9c6): > > if (mddev->queue) > blk_queue_max_write_same_sectors(mddev->queue, > mddev->chunk_sectors); > > for RAID1, aren't chunk_sectors always going to be zero? (At least on > my machine, /sys/block/md*/queue/write_same_max_bytes for all md RAID1 > devices are set to 0.) This would have the effect of rendering > bdev_write_same() always false for these MD devices. > That presumably also explains why only RAID-10 seems to be affected. -hpa