From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: Re: [RFC 1/2] MD: raid5 trim support Date: Tue, 17 Apr 2012 23:07:10 +0800 Message-ID: <4F8D871E.2050403@kernel.org> References: <20120417083552.483324288@kernel.org> <20120417084632.306032602@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: Dan Williams Cc: linux-raid@vger.kernel.org, neilb@suse.de, axboe@kernel.dk, Shaohua Li List-Id: linux-raid.ids Hi Dan, On 4/17/12 10:46 PM, Dan Williams wrote: > On Tue, Apr 17, 2012 at 1:35 AM, Shaohua Li wrote: >> Discard for raid4/5/6 has limitation. If discard request size is small, we do >> discard for one disk, but we need calculate parity and write parity disk. To >> correctly calculate parity, zero_after_discard must be guaranteed. > > I'm wondering if we could use the new bad blocks facility to mark > discarded ranges so we don't necessarily need determinate data after > discard. It would be great the limitation can be avoided and the code can be simplified. I didn't follow linux-raid maillist, can you point me the url of the new bad blocks facility please? Thanks, Shaohua