Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2135562ybm; Sun, 31 May 2020 09:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Xt+SKc1qSuicSsl4rLWCcsDVYlJ5pNmIJuUhSsNs/Yfp0upDUp+g5tYx3va28aZWA0Bu X-Received: by 2002:aa7:c558:: with SMTP id s24mr11432208edr.237.1590943346577; Sun, 31 May 2020 09:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590943346; cv=none; d=google.com; s=arc-20160816; b=FJFZUWwb1nzM0NUof4yEOCnzk5vqAS7vHiIq+gZjY1IlgqxSdg2xDrSjZX3w1pSRvQ 1NwGtgttJ6ld0dPaAqL0khpo4F6rHvaQ5FuC0TGCY5gaIqzDmXLU4rnqyZphVowtf7uc XYJRwHEXz6a4emBhSr8zr97UldjzrynnKejmccQLui+Ml0+fY7iDR+mgfXZ6N5l7ikIf RzCHaa1Ane5quyohWI9Fg/cwl82JiKuLLFEoDLizrvKx+O/cup55I3/MsGJw+QRJCxwp n+7+QqkFHIWVSEIyYMBcX2KsaBik3K01Dm2Ii9X/FcEqGe2IQ4Z5qI9fgKDDgitkl6eI heqA== 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:references:to:from:subject:dkim-signature; bh=2mtCU2U0KE0xx8atMhzxY/9rjdmX95+6IA+naCASAYw=; b=RD9gP5A8zGUojLVIBkPVfQL/yW6RrjYRSvXKhHADXJKVtjEQLJWG4c0TVUcZ+daDm9 Dgt2rYOzyM3BwbUc7gUGPiNQJpMP62LJZKnN1Mcxa2XUm82AGKmb1gcFv3B13/9bKM5Z YFZsLG6HB8UUuDwLeS53Szt9POhR3KWMug0wnCCI6i6TPpMzD6WaiaQZJtaWFuxtVqQG VvQfjGg+E7cOq/hO+HcsBkx8K4jMcXFXyL/ohsyA/rG7sYRSRzyqx3yTrxmq2E4ycz6q KWcBRbwTtnWkYL3ZLINlVNDSIh25AaguxxJ3kRW3DqWDHuZY9X9+8Cpr+qtIjFS+6Ucs Cpgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=Oc6sUMwE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si9443698ejc.462.2020.05.31.09.42.03; Sun, 31 May 2020 09:42:26 -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; dkim=pass header.i=@yandex-team.ru header.s=default header.b=Oc6sUMwE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbgEaQjl (ORCPT + 99 others); Sun, 31 May 2020 12:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728277AbgEaQjk (ORCPT ); Sun, 31 May 2020 12:39:40 -0400 Received: from forwardcorp1o.mail.yandex.net (forwardcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206C4C061A0E for ; Sun, 31 May 2020 09:39:40 -0700 (PDT) Received: from mxbackcorp1o.mail.yandex.net (mxbackcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::301]) by forwardcorp1o.mail.yandex.net (Yandex) with ESMTP id 20C632E1478; Sun, 31 May 2020 19:39:38 +0300 (MSK) Received: from myt5-70c90f7d6d7d.qloud-c.yandex.net (myt5-70c90f7d6d7d.qloud-c.yandex.net [2a02:6b8:c12:3e2c:0:640:70c9:f7d]) by mxbackcorp1o.mail.yandex.net (mxbackcorp/Yandex) with ESMTP id 0aHlEyV4lD-dbx0ACCx; Sun, 31 May 2020 19:39:38 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1590943178; bh=2mtCU2U0KE0xx8atMhzxY/9rjdmX95+6IA+naCASAYw=; h=In-Reply-To:References:Date:Message-ID:To:From:Subject; b=Oc6sUMwEwwNe84QZd0++bNQB5xjfiOTB63EsWwgcbByWiVRHSyFN7s9YnOzv18X30 QWJLUFxLrWhRoFKDGG0P//67FHR5CKEK4S+FMsGXRv+EsDpUigcH36P1Me6hSH5kY8 1GS8uF9sTF2g1cg8aDcjK99zYvSeJesAWfRQlGtw= Authentication-Results: mxbackcorp1o.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from dynamic-vpn.dhcp.yndx.net (dynamic-vpn.dhcp.yndx.net [2a02:6b8:b081:111::1:4]) by myt5-70c90f7d6d7d.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id W4zK4d67ix-daWGj9q3; Sun, 31 May 2020 19:39:36 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: [PATCH] block: really remove REQ_NOWAIT_INLINE From: Konstantin Khlebnikov To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig References: <159094279217.155550.11478547618029899022.stgit@buzz> Message-ID: <7274c2c7-5348-babb-4bbf-6a0e7b95559b@yandex-team.ru> Date: Sun, 31 May 2020 19:39:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <159094279217.155550.11478547618029899022.stgit@buzz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/05/2020 19.33, Konstantin Khlebnikov wrote: > Commit 7b6620d7db56 ("block: remove REQ_NOWAIT_INLINE") removed it, > but some pieces left. Probably something went wrong with git merge. Nevermind. As I see in block/for-next, Christoph have removed REQ_NOWAIT_INLINE. But BLK_QC_T_EAGAIN is still here though. > > Signed-off-by: Konstantin Khlebnikov > --- > include/linux/blk_types.h | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h > index 31eb92876be7..59b2e9bd9bd8 100644 > --- a/include/linux/blk_types.h > +++ b/include/linux/blk_types.h > @@ -322,8 +322,7 @@ enum req_flag_bits { > __REQ_PREFLUSH, /* request for cache flush */ > __REQ_RAHEAD, /* read ahead, can fail anytime */ > __REQ_BACKGROUND, /* background IO */ > - __REQ_NOWAIT, /* Don't wait if request will block */ > - __REQ_NOWAIT_INLINE, /* Return would-block error inline */ > + __REQ_NOWAIT, /* Don't wait if request will block */ > /* > * When a shared kthread needs to issue a bio for a cgroup, doing > * so synchronously can lead to priority inversions as the kthread > @@ -358,7 +357,6 @@ enum req_flag_bits { > #define REQ_RAHEAD (1ULL << __REQ_RAHEAD) > #define REQ_BACKGROUND (1ULL << __REQ_BACKGROUND) > #define REQ_NOWAIT (1ULL << __REQ_NOWAIT) > -#define REQ_NOWAIT_INLINE (1ULL << __REQ_NOWAIT_INLINE) > #define REQ_CGROUP_PUNT (1ULL << __REQ_CGROUP_PUNT) > > #define REQ_NOUNMAP (1ULL << __REQ_NOUNMAP) > @@ -452,13 +450,12 @@ static inline int op_stat_group(unsigned int op) > > typedef unsigned int blk_qc_t; > #define BLK_QC_T_NONE -1U > -#define BLK_QC_T_EAGAIN -2U > #define BLK_QC_T_SHIFT 16 > #define BLK_QC_T_INTERNAL (1U << 31) > > static inline bool blk_qc_t_valid(blk_qc_t cookie) > { > - return cookie != BLK_QC_T_NONE && cookie != BLK_QC_T_EAGAIN; > + return cookie != BLK_QC_T_NONE; > } > > static inline unsigned int blk_qc_t_to_queue_num(blk_qc_t cookie) >