Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1411097rwd; Sat, 20 May 2023 20:41:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gMWgk1fWyRUjTIPKzM47EaJeHyUqNgK1VYNxBVILjJP2mYATckZKMjVCZVHkeH6LDZxfM X-Received: by 2002:a17:902:d345:b0:1a2:6257:36b9 with SMTP id l5-20020a170902d34500b001a2625736b9mr7710723plk.31.1684640467498; Sat, 20 May 2023 20:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684640467; cv=none; d=google.com; s=arc-20160816; b=p+4DZRkjuDFMrzealx15uxaMCWHVksm/42IlrOw2wF1A5T11pxLqIIzPpC/nXQnX7P WrLcQt1jrBo3lEgElntuBZam5wQzC0bfr8O9efuyXGIl7RkdQQ7JkBzCohLSwrWClwo9 nOX8aFguf1zC5bStOkghmIi4XCs4FeRGYvAaeCYgoNjhGpH09GbyneILuq+fE9gJK15p ta17z9QIwJ5DoQWS/J1NqQwWGDElh72cu83HTyqiVW/bY9sktk2FcwBfjdk5d73O4IL5 g0b60Al+iReah3A2PAoSJxlhR2l/CgQ3qsmY6jB8P75tKTjVW3BMknEA09S0kOGpZ47g Iy5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=a79Vo58JHfGLRFzTXzs92sJx4IbsuI16qLQD+jJeNPA=; b=M1Yb2tJzp4szbNLTISFUGLEI+bVh+JgRJN+b+BIpJLGVuYUsr4bHry9LDTzl3zT5Am RHc/xDwCLvmi+ExjOt0lF6JjvxJoOqvimR6jIybQdG3M80GmnN6d5wa/Sz0sHg8Sqwb3 sbHTaYhZSu7XqGXpx1Gu6UhcmW2pHT2kdTvML7IfgNZI+8vM5CSIuMnNq5EZk0WsPyr1 Zeae4+r8NcnrTD06wQgH8F+MKsofNwopVEDx2dBm0dMDpYqVXUorL36u75ZMKG/y1Pkr uCcukKiI+KiKmV6hx6reSfdZZOzsJObvmvf6IgKGkQSo5CUktRUeLzopgm1qE0fYN4tb TeSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VcUmjPfb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a170902c14900b001aafb271d13si2432998plj.235.2023.05.20.20.40.44; Sat, 20 May 2023 20:41:07 -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=@gmail.com header.s=20221208 header.b=VcUmjPfb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbjEUCsM (ORCPT + 99 others); Sat, 20 May 2023 22:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjEUCsK (ORCPT ); Sat, 20 May 2023 22:48:10 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B4EA107; Sat, 20 May 2023 19:48:09 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5144a9c11c7so4320886a12.2; Sat, 20 May 2023 19:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684637289; x=1687229289; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=a79Vo58JHfGLRFzTXzs92sJx4IbsuI16qLQD+jJeNPA=; b=VcUmjPfbxHa8Y8zJZxES3rJVjF2vnytlrj62kXk/JM/oI0QIAO1B2/OX5zBcPA7d55 VWNPwFwLr5l8DqK0NFllNCV00YbN1XGamRoNNwG7yYaltB9aCuHgdHYQTNUZkleTTpLA GbzcE84jggJH/xwkRfTSpBYXiWcoQ89r6RbhpIh3Cx0bXbzcO3yIV/Xqdyqd2CTT38cg B/FUSz5x03Q5zT1B71YIfvfDaOSlDCQ61m+WfzG/J+wijsvsxIzmTqqdWw0iCY5NdVsb /ejGy4suawhHWpt8XfBIOrPyuQhE4UMWFxb3cpvC8gVxW14N6OBNK33IcoQDSIHNNEWQ JRcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684637289; x=1687229289; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a79Vo58JHfGLRFzTXzs92sJx4IbsuI16qLQD+jJeNPA=; b=f3vsLHnMyG/cLnqvwMogbUmqAv2X46oFc3JNJBT6mcVxP+nUNVxwc4TuRfD263L1Cf fbUQ/rIwCWLZMnkPioi1BeUb1w/rBNJckjPSJVuz4XeNMyjDV/jsTeGR8vfDLNWsSUpK LcR8/wJ2/Uls5OFyRifyu5y2njtMWEUMwmovB5iYqT8Mqy+qnw7mUe/tx2VvI7lrhVeS x/zrZAH9Qzz/W0S2Qb+gQHxSo9WcArFPBlmyuEcsPDf3QYWvxcg5DERJBd636w2yxV9A pJAAaHoloxQSQVTbWzCvvF1dyAULusQiOl8K/LloCG9kfYmgqZeNrkVhutoShHdPWLKQ dMRw== X-Gm-Message-State: AC+VfDw0dDnP+vqxpEnJ5oMCG/QAyLU5k8m06oXozbpjajg2fPkunSDM Y1U1F9Q6ZJnBEo0maV+671c= X-Received: by 2002:a17:902:d345:b0:1a2:6257:36b9 with SMTP id l5-20020a170902d34500b001a2625736b9mr7604627plk.31.1684637288836; Sat, 20 May 2023 19:48:08 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id jh9-20020a170903328900b001a6f7744a27sm2191910plb.87.2023.05.20.19.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 19:48:08 -0700 (PDT) Sender: Tejun Heo Date: Sat, 20 May 2023 16:48:07 -1000 From: Tejun Heo To: jiangshanlai@gmail.com Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, Finn Thain , Michael Schmitz , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH RESEND 01/13] scsi: ncr53c8xx: Use default @max_active for hostdata->work_q Message-ID: References: <20230509015032.3768622-1-tj@kernel.org> <20230509015032.3768622-2-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509015032.3768622-2-tj@kernel.org> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: Tejun Heo Subject: scsi: ncr53c8xx: Use default @max_active for hostdata->work_q hostdata->work_q only hosts a single work item, hostdata->main_task, and thus doesn't need explicit concurrency limit. Let's use the default @max_active. This doesn't cost anything and clearly expresses that @max_active doesn't matter. Signed-off-by: Tejun Heo Cc: Finn Thain Cc: Michael Schmitz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Hello, Resending because I screwed up the cc list in the original posting. The whole series can be viewed at: http://lkml.kernel.org/r/20230509015032.3768622-1-tj@kernel.org It's not a must but it'd be great if I can route this through the workqueue tree so that it can go together with other related and followup cleanups. Thanks. drivers/scsi/NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c @@ -417,7 +417,7 @@ static int NCR5380_init(struct Scsi_Host INIT_WORK(&hostdata->main_task, NCR5380_main); hostdata->work_q = alloc_workqueue("ncr5380_%d", WQ_UNBOUND | WQ_MEM_RECLAIM, - 1, instance->host_no); + 0, instance->host_no); if (!hostdata->work_q) return -ENOMEM;