Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp285581ybm; Tue, 26 May 2020 17:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxouDXpYs87efv9O02HExJ/grXvV5iVGV3/fEUq+Ix25egruA9q0tVhETsw7WVf/COYDex+ X-Received: by 2002:a17:906:fa84:: with SMTP id lt4mr3507983ejb.318.1590537855624; Tue, 26 May 2020 17:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590537855; cv=none; d=google.com; s=arc-20160816; b=Q8l4F8zmNd3ijGBJWNGr0V58Rhn/MnQOPIoj7NKd8cMfWkPEN6RfYzoZFlV8MkAXV+ 6M0HwZkCAgPrDwH/QL2zs8KdnFFN6s5P5fBUbH04VOMJlmKrk1vn4lzPnHwJ1hCfPdZc hF1+feh0ckMylq0lIx6zYQf/NkPw/P4Y5gf5ZlgzTms3dRuU+PAtQkq99NqL5xUutYjt XuPbXg3qKGlsHgvUvrhtHp7d/bcbi1H6NTZZKlOFbBS3TtWg6EhD7QBeH+6KaPK8PXaA YLh3esRf5PghubMo7nVkBR40t+cx9ge7irES3rdyKAgJ645AtBG0QrpQekUfipWTE9CZ tfHQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DT9kV8IQxC/D+uhFJsefv+iJT3TxYB4ReZ7s4ZFOil0=; b=bJMfHaWhSuVFP2/8bEoNfZPwHwuMnkH0lFZX3Ye2zK++/pS3MVmJxrowdle6/V1XLb NwmfyaAGndAssdNwpS4+WrH5W2TeSqsA//w1K2vOIx1iNBRip4sLn4kyps3+wGgsIXDH Zsx3SSLJL1WfMdAPzibNB/Rv1ZUScHWoNmAK8pPKIXXw37JJuUDfrZJYzniog10pktIx LN5Ph+QOtjshH4lBvVEyYaC6IoB39dvkMh8s5TUMdYdV4KznmBXnuQuEBkN8jLAC/hs8 qCIjBLBD0e+p2bKQfMjpEn0eVl4tfzRkaykQeiACNizt1GJqnjRWW1wgTpdVVqxMRFVd XY7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=OuGZsDad; 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 oy4si786452ejb.433.2020.05.26.17.03.51; Tue, 26 May 2020 17:04:15 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=OuGZsDad; 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 S2390622AbgEZTwi (ORCPT + 99 others); Tue, 26 May 2020 15:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389648AbgEZTv2 (ORCPT ); Tue, 26 May 2020 15:51:28 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08E2BC03E97A for ; Tue, 26 May 2020 12:51:28 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id bh7so2202226plb.11 for ; Tue, 26 May 2020 12:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DT9kV8IQxC/D+uhFJsefv+iJT3TxYB4ReZ7s4ZFOil0=; b=OuGZsDadMk0ouSxBbagElzrDsOFsdbddmk5eH65ga2Wxc3HZgfLVLJcFyhEw8usAcZ HTB+HylhbVE98IfGgUAnUH7V2yMwJESFU4207FlXryYh0fm8menLFq7jByDucoN4/oPf rJyxXSFaoAe7D9VKjzoCoCQGXgjxaau5MP+A01WQYIW/16fxIm7sCIPAjYEsvtXGsM60 0/ikp/pt7voJ76qWQsjOrJT4Xr0rTeQIodW8eo5MyOLN0+AY4TmYJZDl/Sm0O9y1vtWI bc7fhd+puE49SaeiR2JWPdxtuJM7gyKt8uZOc2YIZRlech7S/BIEWD8kxVapjAUHpLtp dpXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DT9kV8IQxC/D+uhFJsefv+iJT3TxYB4ReZ7s4ZFOil0=; b=HmKeQo6XffSDfZk7mSKUDn+IBNLCGHo3ySF9ELsSYyA9XTwKc6c0wE2OktoFvmzcjd s3NYbp/+h8BKctI9IX7j31hgdZnrDZjM+tu+0PxGF1/gmgHHBFwWk0l4FkfG9uKNbqqT CioE5Z8/FcBs1FATWbVNeljYaLfCjpfeGIDtzswW5+zgWR3apHmOh+HIiXU8t4/O0FwQ g5g3bKuLTmRD04Rs4y9QT6aNxGlxm/RaFKPwStzjRMwBOKnyN0naBCUePHuBaPq2Xc1H beEqfBehqxF59IvRUUD7UZR0uxjmmk+2XnXvSuz6sKIpfXZTn4lTdqUkaL2WXMnYIwxM OTHw== X-Gm-Message-State: AOAM531MZob82qLhC4F9F54e3xCJj7as20Iqv4hlfKtALz5I71ZvMbxI lik94od4K5uaMrNhE6bhqYFtGwPpLF/EKw== X-Received: by 2002:a17:90a:2a8e:: with SMTP id j14mr894757pjd.136.1590522687551; Tue, 26 May 2020 12:51:27 -0700 (PDT) Received: from x1.lan ([2605:e000:100e:8c61:94bb:59d2:caf6:70e1]) by smtp.gmail.com with ESMTPSA id c184sm313943pfc.57.2020.05.26.12.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 12:51:27 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, Jens Axboe Subject: [PATCH 01/12] block: read-ahead submission should imply no-wait as well Date: Tue, 26 May 2020 13:51:12 -0600 Message-Id: <20200526195123.29053-2-axboe@kernel.dk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526195123.29053-1-axboe@kernel.dk> References: <20200526195123.29053-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As read-ahead is opportunistic, don't block for request allocation. Signed-off-by: Jens Axboe --- include/linux/blk_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index ccb895f911b1..c296463c15eb 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -374,7 +374,8 @@ enum req_flag_bits { #define REQ_INTEGRITY (1ULL << __REQ_INTEGRITY) #define REQ_FUA (1ULL << __REQ_FUA) #define REQ_PREFLUSH (1ULL << __REQ_PREFLUSH) -#define REQ_RAHEAD (1ULL << __REQ_RAHEAD) +#define REQ_RAHEAD \ + ((1ULL << __REQ_RAHEAD) | (1ULL << __REQ_NOWAIT)) #define REQ_BACKGROUND (1ULL << __REQ_BACKGROUND) #define REQ_NOWAIT (1ULL << __REQ_NOWAIT) #define REQ_CGROUP_PUNT (1ULL << __REQ_CGROUP_PUNT) -- 2.26.2