From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp1040.oracle.com ([141.146.126.69]:23750 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbcHPEDI (ORCPT ); Tue, 16 Aug 2016 00:03:08 -0400 To: Tom Yan Cc: "Martin K. Petersen" , Shaun Tancheff , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Shaun Tancheff Subject: Re: [RFC] sd: dynamically adjust SD_MAX_WS16_BLOCKS as per the actual logical block size From: "Martin K. Petersen" References: Date: Tue, 16 Aug 2016 00:02:52 -0400 In-Reply-To: (Tom Yan's message of "Sun, 14 Aug 2016 16:46:00 +0800") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org >>>>> "Tom" == Tom Yan writes: Tom, >> 0x7fffff, the maximum number of block layer sectors that can be >> expressed in a single bio. Tom> Hmm, so when we queue any of the limits, we convert a certain Tom> maximum number of physical sectors (which we has already been Tom> doing) logical sectors Tom> to its corresponding maximum number of block layer sectors, and Tom> then make sure that number does not exceed 0x7fffff, right? Yep. -- Martin K. Petersen Oracle Linux Engineering