Received: by 10.223.185.116 with SMTP id b49csp826134wrg; Tue, 20 Feb 2018 08:28:53 -0800 (PST) X-Google-Smtp-Source: AH8x227hoheJkkxBh4kk65LvD2vtObznNvISCNekrYC4euZFKHM7yt5RJ4jPYVF483ibTBtSPZ7/ X-Received: by 2002:a17:902:d806:: with SMTP id a6-v6mr170574plz.274.1519144133104; Tue, 20 Feb 2018 08:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519144133; cv=none; d=google.com; s=arc-20160816; b=CNfN7XIw/9Ee/uYhCftaDqxuLW3vDfuZyFOO2TQR3Y2sCfBOhc7gxo/bOFA/2snelY QyvCgtYdmyQfCFAaHFS5E6JaGo79zdTCyL/KVn/i3hZLYSjKdI5FWKHPIiNY7kvM7Siw oPOofSTLU4UWEIPgPP7nVUxb0yykYhUwWyX42zEUq1ftoTxB6c3yaGMrrS1t1xHJjwH5 5EKnYj6jlBCHIRfCSsIeeUxNEsQBzDuT5bpHQTlFxVxwy10bCq7ClTThcQk2aFcE+4+q onf1JhMZW9WoVzHzhTlKz2DrloSqoxRCenKGzPA2+OAT1kEZ+U9HmT4UGJsYAldy+tLK eRnw== 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:arc-authentication-results; bh=Yevd3qf/IKZDd6SGZMM6H1klGGZ+0UbTYVk9VgIQnuU=; b=EDSlz9rbEs+b1TfNvi2SmxEc/RrJp+wJCitT52gG3ke+6FEH2oRWoW3/YPHcuqYZ3q wGbife7ARp8GzgUn0mBBfNfvgh4Pmsf9QntaskbP8J7OzS+qLvHVsYefYHLHwR8EzVs+ OzrjuJKV7UbOZyiSmssVtTn3ZicpggaBjwsT41vLCaN3RLEGH/1YsscDY22hej6Txjd8 kdBtCkUj0TUqeVrkD27psIj6xc7hpY4WEzVcVhphYQCxWSPP53bRL06Vp1sTq5mff2e9 Jk74RzZqynFchta1EfTIlN3j458qgtm/D+Z+Lq1eLbmgAPOa2z44FtXfEcYqlvQoDHcE 8P7Q== 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 q61-v6si5962953plb.530.2018.02.20.08.28.38; Tue, 20 Feb 2018 08:28:53 -0800 (PST) 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 S1753191AbeBTQ1g (ORCPT + 99 others); Tue, 20 Feb 2018 11:27:36 -0500 Received: from mga02.intel.com ([134.134.136.20]:37765 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbeBTQ1d (ORCPT ); Tue, 20 Feb 2018 11:27:33 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2018 08:27:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,540,1511856000"; d="scan'208";a="176701489" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga004.jf.intel.com with ESMTP; 20 Feb 2018 08:27:32 -0800 Date: Tue, 20 Feb 2018 09:27:37 -0700 From: Keith Busch To: Peter Zijlstra Cc: Nitesh Shetty , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-block@vger.kernel.org, axboe@fb.com, linux-nvme@lists.infradead.org, joshi.k@samsung.com Subject: Re: [PATCH] blk: optimization for classic polling Message-ID: <20180220162737.GC7076@localhost.localdomain> References: <3578876466-3733-1-git-send-email-nj.shetty@samsung.com> <20180220132137.GG25314@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180220132137.GG25314@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 02:21:37PM +0100, Peter Zijlstra wrote: > Also, set_current_state(TASK_RUNNING) is dodgy (similarly in > __blk_mq_poll), why do you need that memory barrier? You're right. The subsequent revision that was committed removed the barrier. The commit is here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=67b4110f8c8d16e588d7730db8e8b01b32c1bd8b I hope the code at least looks more reasonable. The changelog isn't much different, though.