Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2207800ybn; Thu, 26 Sep 2019 08:31:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkNZgFy3tO61UyigMJAnKk9n2S/nG3jFvQQEUwpsTKT4M9BNvY0XsuBUWfodbDjp127Lz/ X-Received: by 2002:a7b:c34e:: with SMTP id l14mr3243000wmj.123.1569511899021; Thu, 26 Sep 2019 08:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569511899; cv=none; d=google.com; s=arc-20160816; b=TdCk89rAKWVZdvpWR/xBlB09+8poo6Wf7TsvpRuI5QBmawz1QByuts8IxrVFsqrMPq OGCcZLdS4LSwRvSyWWu77BWM4s1buzt4m3qN4+kwEHp0s68s8dNSeHw9wewGMUA0Ip8p N3D9VmBXUq8pyLbZ4B9KFbr4H1zmedC44fJNDx9quBbaxGANTm4+flmUcRE7BekHQZ4h spZx64cenbu3CErwTrgYTYow49MNK12wLuDsE32WiYxI1qYiovl3ZgAV7KJgdUn3ukJN r9LD1Br2CrN6OuT+H8ZgHK1I0KOJI+RXsfuFAZ/ugzyjRC3atQsMHhgJXka/PMUv3Wnx 3n4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=qc1eT7uGpsF0iy1oLm7/WXrBC6ZEepJkU73RRHx5dH0=; b=y30NM6M5XJGE72o4jzKl7PcJvlLAyyVu6hxnRdm0FDokrmIYFyAaNUCPFX07SovBzB AVPmRp0qp8LGvJFL3tJU+/0M5Sxw8yrPaa0T2cT0BP0Icb/rj8JRUTss3shZ2ZQQEuse 7hHQNFMbFEv5NT2eeD5S20ucU9XgQEL5R4jhllQrE9gefx3/UoKxhPAeBrGaU6hseJZ8 ZfaYTSOocULqsAQyYTnahS3uHMs2TjPhSnk0OnyZFNQWQtRFhWzgUOETecORxg6CpNmI L4sVeHGCZVcWMaC7dATcediXRFZzRl7WFWYnkBSsjfqf//CQl596oQYFR/YvxVBxLti1 24Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oz6si1177957ejb.124.2019.09.26.08.31.15; Thu, 26 Sep 2019 08:31:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbfIZP1S (ORCPT + 99 others); Thu, 26 Sep 2019 11:27:18 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36275 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbfIZP1S (ORCPT ); Thu, 26 Sep 2019 11:27:18 -0400 Received: by mail-pf1-f194.google.com with SMTP id y22so2055901pfr.3 for ; Thu, 26 Sep 2019 08:27:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qc1eT7uGpsF0iy1oLm7/WXrBC6ZEepJkU73RRHx5dH0=; b=efzXnksXXtL04eifVsoF+x6Sa1EZQNFtXW7XLp0B+660cIABXss7XhQ489SeTP//Ht GvkxfdSL92lbS391nHofJVLmqqlhSAdRQd2+UkcPI7zB9ave+ZeSoXKyMaEdy1SAG1qh bn62Fix4CqeFktc5QMRHrbi4QObege89OcNEAVE8dCRpjPg1bFRJASe2gQIaf8WHEWm1 98A7XgIXFpobWEUe52wrwhtR/F6RwXpXx/2UdHO6+UDkA6iZEhUxC5LoAb/Te6LQK1TI kSx8pXJJvcp6tx/k5QDhiTlJF0UBXdb6T21PT3TNjtdd7mcmSzcZFhWcf+HJSpiDOjQP NJrw== X-Gm-Message-State: APjAAAUl+9qRFbgjl+vSrzG46gpWu8FHrxa/MjUfoWeSCLviitJKpu6w xISF2aT78pbekio3PypoUi+r3ZL0SVE= X-Received: by 2002:a62:168e:: with SMTP id 136mr4318015pfw.144.1569511635448; Thu, 26 Sep 2019 08:27:15 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id x8sm2589409pgr.30.2019.09.26.08.27.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Sep 2019 08:27:14 -0700 (PDT) Subject: Re: [PATCH] async: Using current_work() to implement current_is_async() To: Yunfeng Ye , Alexander Duyck , "gregkh@linuxfoundation.org" , bhelgaas@google.com, dsterba@suse.com, "tglx@linutronix.de" , sakari.ailus@linux.intel.com Cc: "linux-kernel@vger.kernel.org" References: <395617ec-ef92-c20f-d5c1-550b47a07f6d@huawei.com> From: Bart Van Assche Message-ID: <8336ea6a-bc98-bd45-b317-3fc8d5f1d9f8@acm.org> Date: Thu, 26 Sep 2019 08:27:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <395617ec-ef92-c20f-d5c1-550b47a07f6d@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/26/19 1:40 AM, Yunfeng Ye wrote: > current_is_async() can be implemented using current_work(), it's better > not to be aware of the workqueue's internal information. Reviewed-by: Bart Van Assche