Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp473241ybt; Wed, 8 Jul 2020 04:31:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTJ6k5ZKiJFsO7/HdNNQ74FusPH+EMPRQOFztlEUqTbQIRkD5D+5PH6cdhMJ6hOk6G+3Qh X-Received: by 2002:a50:f418:: with SMTP id r24mr60380778edm.382.1594207893771; Wed, 08 Jul 2020 04:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594207893; cv=none; d=google.com; s=arc-20160816; b=Pn1OMV3O2XhLmZvCTbo8SSGv96Vm86lsnm/iIEOlFE4jwXlZW4g4ABh9FdUjB7RTFi QJfbLcE2gRwrA6+vsguoz0QvkWVD1Tdnw61mGg+Uthg4cXFDS0hEbZi8cDcjDc0DB5n6 q/vyO2B14DJNc5kc02lqCzpb+FpKETgNu4A+OBjSSWHEvoJ4OO6Kvog3+MfHErYinfVb wL0lT1JOLy0FtrCSCD9AgHiEZj5Lj6j7zBG14R2CP2L0htAzqM3CsaMcu5pV6Tkd99M9 j3puLPJqJmsugKrDdeSsLcDhFkHwvUjdT7EZhyTeNnUPtIfOOdggECiCwszk3tEJ0bbw yckA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Wdil8OsC5FE94GLZ2pFaMfSHKrmcB1kGGMXio3mui/0=; b=xo/oKE8cj+AI5nGd9IeNTQlYRWpyP69aiF7Gc6XxpcbfPWgooS+GbURYxa4uad57C4 tLx7+/73PTFYtZ1brKESGPlF4DubIbxihJuJ+UVZDgwUJkQbTGZIhMcl/k2lbsrgXuCO tgPccuP3iTFWTGfYwd+sgPkU9VLMn1H39PrAsPGh9uQigPby2TYfzDAr5g2o9TMoVh1D qJkjVASow+zcFz0U0KlZAsaxb2ZmwmiNItUR5AqMTPh8MkFZBBveWJRlJ6Iw3Z+1VQSh aRAXbjpuQpkUSRE3JHdMBvEzqqk3sNn49x6EpM3ZshLkq9xunjLUqbo2QdYfUUKTcTBT Uzyg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si16036943edy.109.2020.07.08.04.31.11; Wed, 08 Jul 2020 04:31:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728831AbgGHL22 (ORCPT + 99 others); Wed, 8 Jul 2020 07:28:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:48186 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbgGHL21 (ORCPT ); Wed, 8 Jul 2020 07:28:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CE33FAD4B; Wed, 8 Jul 2020 11:28:26 +0000 (UTC) Date: Wed, 8 Jul 2020 13:28:25 +0200 From: Petr Mladek To: Marek Szyprowski Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Mark Brown , Zhang Qiang , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] spi: use kthread_create_worker() helper Message-ID: <20200708112825.GC4751@alley> References: <20200708070900.30380-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200708070900.30380-1-m.szyprowski@samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2020-07-08 09:09:00, Marek Szyprowski wrote: > Since commit 4977caef05aa ("kthread: work could not be queued when worker > being destroyed") This commit should disappear from linux-next soon. We did not expect that it would cause these warnings. We first want to fix the callers before we put it back. > there is a warning when kworker is used without the > internal 'task' entry properly initialized. Fix this by using > a kthread_create_worker() helper instead of open-coding a kworker > initialization. But the fix is great and makes sense on its own. The use of kthread_create_worker() simplifies the code. It uses the kthread worker API the right way. It will eventually allow to remove the FIXME in kthread_worker_fn() and add more consistency checks. I would use the above reasoning instead of the backtrace in the commit message. And feel free to use: Reviewed-by: Petr Mladek Best Regards, Petr Mladek