Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934562AbdC3PbP (ORCPT ); Thu, 30 Mar 2017 11:31:15 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:20050 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934072AbdC3PbL (ORCPT ); Thu, 30 Mar 2017 11:31:11 -0400 To: Fam Zheng Cc: "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Laurence Oberman , "James E.J. Bottomley" Subject: Re: [PATCH v2] sd: Consider max_xfer_blocks if opt_xfer_blocks is unusable From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170328044126.10006-1-famz@redhat.com> <20170330041311.GA32392@lemon.lan> Date: Thu, 30 Mar 2017 11:30:57 -0400 In-Reply-To: <20170330041311.GA32392@lemon.lan> (Fam Zheng's message of "Thu, 30 Mar 2017 12:13:11 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 305 Lines: 11 Fam Zheng writes: >> rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), >> BLK_DEF_MAX_SECTORS); > > Yes, it is better. Is it okay to make the change when you apply? Sure. Applied to 4.11/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering