From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1D05C04AB4 for ; Fri, 17 May 2019 15:14:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 754B521734 for ; Fri, 17 May 2019 15:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558106084; bh=WQu/pEYsT1hSI7pXJd3HsPZytT2NMY/pf4S36Fc1plU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=vxzh2oiH+OGiXdMnFCTjGXe0aXp2pMMEBh4Ib9SiyIJNAwegheKRDGp12vissCmK6 50oecjfRGyTEp9uVEfhA2ubiz30CdraXTK3y+rfs2InIc6ujJvrR7JP5tDqyLkBCzX d/r/efvwVdYGj56KibgPlVt8OGIXcL50NqDR/758= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729214AbfEQPOo (ORCPT ); Fri, 17 May 2019 11:14:44 -0400 Received: from mga14.intel.com ([192.55.52.115]:6783 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbfEQPOn (ORCPT ); Fri, 17 May 2019 11:14:43 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2019 08:14:39 -0700 X-ExtLoop1: 1 Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga005.jf.intel.com with ESMTP; 17 May 2019 08:14:37 -0700 Date: Fri, 17 May 2019 09:09:25 -0600 From: Keith Busch To: Akinobu Mita Cc: "Heitke, Kenneth" , linux-nvme@lists.infradead.org, linux-pm@vger.kernel.org, Keith Busch , Sagi Grimberg , Jens Axboe , Daniel Lezcano , Eduardo Valentin , Zhang Rui , Christoph Hellwig Subject: Re: [PATCH 1/2] nvme: add thermal zone infrastructure Message-ID: <20190517150924.GA25006@localhost.localdomain> References: <1557933437-4693-1-git-send-email-akinobu.mita@gmail.com> <1557933437-4693-2-git-send-email-akinobu.mita@gmail.com> <2bf1e2cf-b922-d947-c939-375aba75994d@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Sat, May 18, 2019 at 12:01:57AM +0900, Akinobu Mita wrote: > > This is work_struct, not workqueue. So it can't be destroyed. > But I noticed that we should call flush_work for thermal_work at > unregistering thermal zone devices. Instead of creating yet-another-work_struct, let's append this event's action to the existing async_event_work.