From patchwork Thu Apr 14 10:36:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Saxena X-Patchwork-Id: 561397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C99D8C433F5 for ; Thu, 14 Apr 2022 10:37:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241914AbiDNKjh (ORCPT ); Thu, 14 Apr 2022 06:39:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241898AbiDNKjg (ORCPT ); Thu, 14 Apr 2022 06:39:36 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3BC7A982 for ; Thu, 14 Apr 2022 03:37:12 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id h15-20020a17090a054f00b001cb7cd2b11dso5252267pjf.5 for ; Thu, 14 Apr 2022 03:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=jK9KwS6T+bquj5YHcg3bo29cXg8G42RJN1XYEO/oULs=; b=femld6AdQLQ2ppLPAqsEcYR0m3p9ja7DeTar8H97KJUJlsWoSracwj29OeFZAhR9+o ad+I4vGjKKoArulCaIV8n7Mfgu++5/8nR9PfDmOc3p92KBXBPsmGf4Wfv5XVqTlxAPzm CBdDVeCURBQ/H6yx6pH1kLG+L4zDOz2SJjpmY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=jK9KwS6T+bquj5YHcg3bo29cXg8G42RJN1XYEO/oULs=; b=KgyO82kilmNlBE0DUylc+DpNb9/VWcRdJBHCAUOFWd8OA5g60p3zcA56tYGFreHaoj 7D+A9B+Uz0w/zqSfbalSkhqdTrcr3BqLZYlHtHEJpVOjG6fDZSLseawfUKziAoRGtWF1 hFR5CUkG/nqVU7J+Shx8OIVCHDnDsSTi5Q//Sgj5Ixzya0EgBAMwJpFU/nc8rcYpiiS0 vILDWaDff/+7CgO9bPu6ECTSc34omviIqHj7lVM2KEZLs16zBqxvaCRPR8hYMyIHuHIZ yOo3IxKrJDJyGf2v6gOfaUf8lqXwqHY1s/Oiaw2gCOyPgqsw+WsAAbKN2zrUPo6DjaZv Q+vQ== X-Gm-Message-State: AOAM530kJSOTssnlBNLA9zbUlUaU6q3dRZGCj/5xnXDnR8Uj7uy4Gccr C1rh2lzXXn69REYR9Mgw1GAdBWUPK508uBWZKtFo7ZYw2u6CMhgdMla9aBXcWYDKjLhXwcf88Sy BdrqbSTFtdToHg7TmtWIJwQ1dDzOAJSmdZBk5JViIiPUGAujNAB/HzdZGu1YOBURZMe2rJqetNv rzUoBmh6o= X-Google-Smtp-Source: ABdhPJzRH9qEaIIOdUKTA64HQswr01KdseU9kURpRWFXqzcfDA37Ixt0HBOh9BpMogeQvuVUv6Vjrw== X-Received: by 2002:a17:903:1c7:b0:158:5ada:8876 with SMTP id e7-20020a17090301c700b001585ada8876mr20656781plh.122.1649932631656; Thu, 14 Apr 2022 03:37:11 -0700 (PDT) Received: from dhcp-10-123-20-15.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z6-20020a056a00240600b004e17ab23340sm1820634pfh.177.2022.04.14.03.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 03:37:09 -0700 (PDT) From: Sumit Saxena To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, sathya.prakash@broadcom.com, kashyap.desai@broadcom.com, Sumit Saxena , Ming Lei , Hannes Reinecke , Bart Van Assche , Sumanesh Samanta Subject: [PATCH] scsi: increase max device queue_depth to 4096 Date: Thu, 14 Apr 2022 06:36:01 -0400 Message-Id: <20220414103601.140687-1-sumit.saxena@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Maximum SCSI device queue depth limited to 1024 is not sufficient for RAID volumes configured behind Broadcom RAID controllers. For a 16 drives RAID volume with 1024 device QD, per drive 64 IOs(1024/16) can be issued which is not good enough to achieve performance target. Cc: Ming Lei Cc: Hannes Reinecke Cc: Bart Van Assche Cc: Sumanesh Samanta Signed-off-by: Sumit Saxena --- drivers/scsi/scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 211aace69c22..735b6c862b46 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -200,11 +200,11 @@ void scsi_finish_command(struct scsi_cmnd *cmd) /* - * 1024 is big enough for saturating fast SCSI LUNs. + * 4096 is big enough for saturating fast SCSI LUNs. */ int scsi_device_max_queue_depth(struct scsi_device *sdev) { - return min_t(int, sdev->host->can_queue, 1024); + return min_t(int, sdev->host->can_queue, 4096); } /**