Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2318048rwl; Fri, 6 Jan 2023 05:01:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqW6kqdrB3z7yl8y+BSOwtQiCk1ysw/wXL4H4VCoSoH1KjAKMnkQ0G4Z9NAcoIvX8m2mSK X-Received: by 2002:a17:906:33d0:b0:7e0:e1a2:dd98 with SMTP id w16-20020a17090633d000b007e0e1a2dd98mr48673084eja.67.1673010076891; Fri, 06 Jan 2023 05:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673010076; cv=none; d=google.com; s=arc-20160816; b=vJZuxfJdmAnXgVY5PSKD8D5H2vU8c034KVKPxpdIqEQTOh4M2DfgPUnPHhv4teGAe6 CkSbvQDus8G4mWToH6RSi+swssbSIe5RXYlVeK2xvV/HE2tkmfj+5zAp/j530HgvLVJN 5MrRXBi4SmFCS/PEwYdSESHlgaSUdG5UrB6P64BssmIK4D/WNVL6BVTZ+j79QIXf2FJF cTfV/kN2TVbRGSK/bkIi8bw2cqm+cHLH5MPrZ4q+Sf333rYTxsckz6quCuxjhhYDUPjM 1YoPKrbQUwS1fAIm4FKrCj+Xfx+hkNESiSQOHoZjB3CD1QABkUTv7YsdInKwy3z9uyqc xynw== 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:dkim-signature; bh=wh5xyDBHV8fkWq0+1QQR3mYomHcc7+MxORZJ1rFfnCw=; b=qPg3M2wr5/R+XTbJ3vJOrv+CUoiIFmOr5qlvJI9ppHPKYui/ERgm+lf7LO6KGtlsxj mEWWN8jyMDbjDqLt06Zo908iMPeH91S3hiHsi/cNi+9rINEhDMgYje/6Zhc0T7ccvXV8 rohiSSUII+hFkKcve8DCNBqwzBKSEpUmpmA1WXIx6GFyIQChXSg82Fr1yOA3YoLeG54v 6iwR/zXP5AebSzUuVfcSOeCZopTIUZXCtmjOwpZb9jC98qhZYTFZi9ANwn/tZjUzOEuU dcM9tU6mGRVqCy2rLUYfK/3SF/Kg/AujaUo7LAGVefY+YSYVdZU2adHBj3kTiRhE8qB7 bXYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=LdGJVy1x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a05640240c300b004739d471e12si1932586edb.280.2023.01.06.05.01.03; Fri, 06 Jan 2023 05:01:16 -0800 (PST) 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=@suse.com header.s=susede1 header.b=LdGJVy1x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232785AbjAFMkH (ORCPT + 54 others); Fri, 6 Jan 2023 07:40:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbjAFMkF (ORCPT ); Fri, 6 Jan 2023 07:40:05 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536B4687A6 for ; Fri, 6 Jan 2023 04:40:04 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4E65424A8F; Fri, 6 Jan 2023 12:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673008802; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wh5xyDBHV8fkWq0+1QQR3mYomHcc7+MxORZJ1rFfnCw=; b=LdGJVy1xEl97Sb2hltrGnPy3oXDlAcRdLGhCRCGoktKEQjCp8Se3attqVjxLfVVLQJwVYn N+RjnN9DY3qwRRzGD+3jWtAPP1/HwfqMuQldk9+FA0KdF+xEnXNc+oPhI7MVY7HTtdfHpw z3t8inHfHsY17RfUaBhcpK5Jv4JlIks= Received: from suse.cz (unknown [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 2F7DE2C143; Fri, 6 Jan 2023 12:40:02 +0000 (UTC) Date: Fri, 6 Jan 2023 13:40:01 +0100 From: Petr Mladek To: Zqiang Cc: akpm@linux-foundation.org, tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] kthread_worker: Check all delayed works when destroy kthread worker Message-ID: References: <20230104144230.938521-1-qiang1.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104144230.938521-1-qiang1.zhang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Wed 2023-01-04 22:42:30, Zqiang wrote: > This commit add a check for delayed works, when destroy kthread worker > if there are still some pending delayed works will trigger warnning, > this remind caller should clear all pending delayed works before destroy > kthread worker. > > Signed-off-by: Zqiang Reviewed-by: Petr Mladek Best Regards, Petr