Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1523312pxf; Fri, 19 Mar 2021 08:58:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxwgPz7d6uj3CNApoVEpYtjfWUncykjYTsFnt+S7OMmV95EJUYbAZBHSeoj7oD44jGuKQ2 X-Received: by 2002:aa7:de8b:: with SMTP id j11mr10384000edv.363.1616169489347; Fri, 19 Mar 2021 08:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616169489; cv=none; d=google.com; s=arc-20160816; b=j+OMB1SNezMsRIGeJ1nbbsH8ld1p8C6VVQcn5eXdIXgq7fjjjfOG/iiL/lHavxqwww AEORU9Mi0878zCpK2JBo23xTz+06vWN49rqG7Eto8iBLcBnwsdmlYQUSpTduX57NHeCU 4jtk9TdbAAMFI/enuzRnEljLOOaX/r5lFuS2LiqG+/+wKHBWfIlYzh8dBOZo75Bn2V6x zIiqJvvaNsb/SHFi2mpjyjujDvaxcEIc4GrnK8Esbl1W723+UAwoNUiDq6Nsn25WkgXG /j7U3KMOLg3pAZmorsx+hvS8uZPqtsI9eDKzwlEraQA1lCzbZ4mMGTwdMb2dc1nLBq9H 9XWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=fW7+qzZoo9fhwngQRKlKIY/ua8QbVYQsaKR3oqVBdmA=; b=tccTunlBRXpvm5KT/3JrWAC1SWSbMxtda1nsNTl8Ub4b+Cw+9yp5rfXOeXLEum4urq c5qdD117HUPt4DSJoxClSiZEOfX6V+A8/CpCA2XQfj05vIMWoMyYfJcBlq1tw9uM+l79 0GlTnogCAPJgGnP/9OSqPIkSjvRoD1dB+L3zTg456gGxJvSiNQTGQxe31MEJ7/p3z4cQ brLVcABQfhOH1kkz4goXgh/48JLMSuLa2rFuhpKZ8IDbvz8KPqbRMDv2qaiBf6iqTkg3 L9lXAFnkDkZyqbM2mX4+7LAUt4mimNPh+fU/ix8qBVvMc3KdLmUWaXEbytoKjq1SWjE7 fIcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si4390347edc.581.2021.03.19.08.57.44; Fri, 19 Mar 2021 08:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbhCSP43 (ORCPT + 99 others); Fri, 19 Mar 2021 11:56:29 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:51484 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbhCSP4X (ORCPT ); Fri, 19 Mar 2021 11:56:23 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lNHU5-0002ev-Rs; Fri, 19 Mar 2021 15:56:21 +0000 Subject: Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call To: Dan Schatzberg Cc: Jens Axboe , linux-block@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210318151626.17442-1-colin.king@canonical.com> From: Colin Ian King Message-ID: <70d5493d-1c33-35ed-cbed-18f4e0bad79a@canonical.com> Date: Fri, 19 Mar 2021 15:56:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/03/2021 15:54, Dan Schatzberg wrote: > On Thu, Mar 18, 2021 at 03:16:26PM +0000, Colin King wrote: >> From: Colin Ian King >> >> The 3rd argument to alloc_workqueue should be the max_active count, >> however currently it is the lo->lo_number that is intended for the >> loop%d number. Fix this by adding in the missing max_active count. >> > > Thanks for catching this Colin. I'm fairly new to kernel development. > Is there some tool I could have run locally to catch this? > I'm using Coverity to find these issues. There is a free version [1], but the one I use is licensed and has the scan level turned up quite high to catch more issues than the free service. Refs: [1] https://scan.coverity.com/projects/linux-next-weekly-scan Colin