Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3113188pxb; Mon, 18 Apr 2022 16:16:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0e+eisk2hdsAT6KCfVxoTD8wPGmBaUCjWk8gzFMv8HvYqQqta7qzuyHaAdkuxViHroLlg X-Received: by 2002:a05:6402:321b:b0:41d:888a:3ff0 with SMTP id g27-20020a056402321b00b0041d888a3ff0mr14583143eda.167.1650323802520; Mon, 18 Apr 2022 16:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650323802; cv=none; d=google.com; s=arc-20160816; b=mggP0niXW3fYMFNTCCLaYme09Cw19jfiNN8p/VdzUmRtsAdVAG44fsIVPWl/ruHDn2 7seKc8MpJQAtgcoLWiI0jxiZ4T6HOaLdeMN/R1NW4xpR0XmZHC0U9zeQ9BEFmYfRlY3X 9Ot8HD9nfbedY0tbQVFMZ+K0WdKLQBV0R/uC/TfQDEZb5RO7oPj5bEJB81E0a4s82Evt fUlMK5w5tDHyH7b98j4r+IzpZ1Irle/xyL0G9yWAFqqZ710Begjg8m95v9WHvjb8xtiN 4AMLBujrxmrn+p5GBLuAtCjk69j3jlCVNHSYFMLr9QUBlUwt1PhhgxVvdpGyo920x5g6 scsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gy87uYRvLEDGvDxd9KF4XGtboZ+rX0yhwSxgFG+XA1o=; b=jPM5EPGEThYxTGXN7uvLGZvetdq2ZoPI7rUKRXgCNv8YJm0K/ch04HzAAb+FTvnOin YCs6a4kJmc3F5TaVbFY5ocUcLsrL1cSH564Wg4txeeC5FK6OLIizqL/XkQDobmvVFbF3 m1JJyEf0rnw25Yl2rLZs7txcKplfN3WduVyiDG53CJIppNQ6wV2gmhYpMvkm09qRcWur 5Tt53F3eaLRqM/k2d976ShuO7jsR7mzZr/4Zg4G307phk3zSN4oa2L+EgPC+YwGVXETa N8Fb60IbBs0tBm3IbKO5yEJaGykUz9oWFEZnbyXwguiQunI3iTwHnC4Yu9o0RqXhcHP1 pZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0hzTQSYG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170906079000b006df76385edbsi603454ejc.891.2022.04.18.16.16.17; Mon, 18 Apr 2022 16:16:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0hzTQSYG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245237AbiDROFZ (ORCPT + 99 others); Mon, 18 Apr 2022 10:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244379AbiDRNrl (ORCPT ); Mon, 18 Apr 2022 09:47:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDC933348; Mon, 18 Apr 2022 06:01:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D822760B35; Mon, 18 Apr 2022 13:01:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE09FC385A1; Mon, 18 Apr 2022 13:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286870; bh=CE8uiITvTHHnwzEeKk6MBoEMlDrcSfssjlvn4KcXDDs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0hzTQSYGU+Mn71nl7IEVlQ7bvbYuGnklr4A2blcx9044H5lnhfaMuiXODI+P1I3nj MUFAqOTiGKbrADwR+iGjnpl7hJadzZzdphlf+V727MJPgVBd/MfXKw38tiKnWKupri Z6W/uMhAaUApUNHrTE9wwbR30rVSr0KKDutyg3cg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tyrel Datwyler , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 272/284] scsi: ibmvscsis: Increase INITIAL_SRP_LIMIT to 1024 Date: Mon, 18 Apr 2022 14:14:13 +0200 Message-Id: <20220418121220.653277294@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tyrel Datwyler [ Upstream commit 0bade8e53279157c7cc9dd95d573b7e82223d78a ] The adapter request_limit is hardcoded to be INITIAL_SRP_LIMIT which is currently an arbitrary value of 800. Increase this value to 1024 which better matches the characteristics of the typical IBMi Initiator that supports 32 LUNs and a queue depth of 32. This change also has the secondary benefit of being a power of two as required by the kfifo API. Since, Commit ab9bb6318b09 ("Partially revert "kfifo: fix kfifo_alloc() and kfifo_init()"") the size of IU pool for each target has been rounded down to 512 when attempting to kfifo_init() those pools with the current request_limit size of 800. Link: https://lore.kernel.org/r/20220322194443.678433-1-tyreld@linux.ibm.com Signed-off-by: Tyrel Datwyler Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c index 25d2741cdf96..b97140661119 100644 --- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c +++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c @@ -44,7 +44,7 @@ #define IBMVSCSIS_VERSION "v0.2" -#define INITIAL_SRP_LIMIT 800 +#define INITIAL_SRP_LIMIT 1024 #define DEFAULT_MAX_SECTORS 256 #define MAX_TXU 1024 * 1024 -- 2.35.1