From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753269AbbAGASM (ORCPT ); Tue, 6 Jan 2015 19:18:12 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:26419 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbbAGASJ (ORCPT ); Tue, 6 Jan 2015 19:18:09 -0500 To: Sreekanth Reddy Cc: "Martin K. Petersen" , "jejb\@kernel.org" , Christoph Hellwig , "linux-scsi\@vger.kernel.org" , "James E.J. Bottomley" , Sathya Prakash , Nagalakshmi Nandigama , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH 06/22] [SCSI] mpt2sas, mpt3sas: Removing uppper boundary restriction for the module parameter max_sgl_entries From: "Martin K. Petersen" Organization: Oracle Corporation References: <1418131643-11568-1-git-send-email-Sreekanth.Reddy@avagotech.com> Date: Tue, 06 Jan 2015 19:17:32 -0500 In-Reply-To: (Sreekanth Reddy's message of "Thu, 11 Dec 2014 17:44:03 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Sreekanth" == Sreekanth Reddy writes: Sreekanth> I though to warn the user that the module parameter Sreekanth> max_sgl_entries value what they provided is greater than the Sreekanth> kernel defined SCSI_MAX_SG_SEGMENTS, whether if this module Sreekanth> parameter value is greater than or less than the Sreekanth> SCSI_MAX_SG_CHAIN_SEGMENTS. Also I thought, user may confuse Sreekanth> if see observes SCSI_MAX_SG_CHAIN_SEGMENTS value instead of Sreekanth> max_sgl_entries value in the warning message. I would just prefer to see the value that is in effect. I know what I provided as override value. At the very least print a warning if you subsequently clamp the value to MAX_SG_CHAIN_SEGMENTS. "Requested number of segments %u is bigger than kernel max %u". -- Martin K. Petersen Oracle Linux Engineering