From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH for-2.6.37] block: max hardware sectors limit wrapper Date: Thu, 16 Dec 2010 18:49:18 -0500 Message-ID: References: <20101206184346.GA13582@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101206184346.GA13582@redhat.com> (Mike Snitzer's message of "Mon, 6 Dec 2010 13:43:46 -0500") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: stable-bounces@linux.kernel.org Errors-To: stable-bounces@linux.kernel.org To: Jens Axboe Cc: Mike Snitzer , linux-kernel@vger.kernel.org, device-mapper development , Mikulas Patocka , Lars Ellenberg , stable@kernel.org, Alasdair G Kergon List-Id: dm-devel.ids >>>>> "Mike" == Mike Snitzer writes: Mike> Implement blk_limits_max_hw_sectors() and make Mike> blk_queue_max_hw_sectors() a wrapper around it. Mike> DM needs this to avoid setting queue_limits' max_hw_sectors and Mike> max_sectors directly. dm_set_device_limits() now leverages Mike> blk_limits_max_hw_sectors() logic to establish the appropriate Mike> max_hw_sectors minimum (PAGE_SIZE). Fixes issue where DM was Mike> incorrectly setting max_sectors rather than max_hw_sectors (which Mike> caused dm_merge_bvec()'s max_hw_sectors check to be ineffective). Acked-by: Martin K. Petersen Jens, please apply. -- Martin K. Petersen Oracle Linux Engineering