From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH] block: Fix discard topology stacking and reporting Date: Wed, 18 May 2011 10:38:29 +0200 Message-ID: <4DD38585.1060805@fusionio.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: "linux-fsdevel@vger.kernel.org" To: "Martin K. Petersen" Return-path: Received: from mx2.fusionio.com ([66.114.96.31]:46972 "EHLO mx2.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755087Ab1ERIie (ORCPT ); Wed, 18 May 2011 04:38:34 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 2011-05-18 06:33, Martin K. Petersen wrote: > > In some cases we would end up stacking discard_zeroes_data incorrectly. > Fix this by enabling the feature by default for stacking drivers and > clearing it for low-level drivers. Incorporating a device that does not > support dzd will then cause the feature to be disabled in the stacking > driver. > > Also ensure that the maximum discard value does not overflow when > exported in sysfs and return 0 in the alignment and dzd fields for > devices that don't support discard. Applied to for-2.6.40/core -- Jens Axboe