Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp218605ybg; Sat, 23 May 2020 12:02:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdaREhQr5PdAvDCQPdfmMvNO/xQ9EIogcVCgqnpHHnpUDq616Wc4s+cxYAFvh+AbX1wo6t X-Received: by 2002:a17:907:4360:: with SMTP id oc24mr12215353ejb.229.1590260542178; Sat, 23 May 2020 12:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590260542; cv=none; d=google.com; s=arc-20160816; b=JljFnY2iNp76CnZa+KxQ5pOJlKPbv7SABjcKSRVrB61TEz1PFUjQj4AhbcSpVk6vRf VSvxb5V7fFg2kcODmMQCrfWhh7VmmBHScCfO8HW6gXjVV5aIdJoqOAEZx3hfSKP0R3YR 3j43X0eoAJVwWl+r+iqtDR2l8yHxzd/S4Vy2RSMOf9MPOA7Hhyv161aeGsUJIGl0NI3m l0UUwiC6iA6zazOYOtInjOMvyIgtgKg9pVhYrEj9992dPAGqzS43s7WkyCxTnVzC8D4s ke84pSBnWPrbVv1HGgaSD7kzuP8e8owGoNKtP/M0vCfCGKxYsCXodtgUwO+hcbw8KxIx g+CA== 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=H6SE+H32ky6W9NOdWZCeDcTTcUUzU9XPH1/PWM5xLGVlU2EYQ1MwA3KHF4uqjg8PET 7X+R08UMh96MCxUGR7vnkEYCJBf/LALLug/ZYFj9Ot70jCzxkpRvgJU+awDcwxSPj5hs Qna2ygTcxDD2BMc+LvfbXkmZBDEjIfO/qHUfY2Li2t9z6EUUzlG8HluQ7vTq4W3uWFhY L8xYn9J37EY3gqDLv42MVDrZ7fu36EOQDAcQSPIZXOGaThaJ96wNpZ02G3Jk2RdBTvNA ie35fSjs/F96Kke1YHHd/dVTTcveOe/6/d6FXGZUibHaK27ShPT2Nmw4mvUpbPDMsmhr ju2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=a87Bs6xG; 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 i11si6291255edv.153.2020.05.23.12.01.59; Sat, 23 May 2020 12:02:22 -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=a87Bs6xG; 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 S1728354AbgEWS6C (ORCPT + 99 others); Sat, 23 May 2020 14:58:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728319AbgEWS6B (ORCPT ); Sat, 23 May 2020 14:58:01 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EED6C08C5C2 for ; Sat, 23 May 2020 11:58:01 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id q8so6763757pfu.5 for ; Sat, 23 May 2020 11:58:01 -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=a87Bs6xGjaGsCBlocxfqOxy2zUrVZ1peF9M9El8QQmFnxZ4ofnyrA5X/03ZjgM5oMk zf0D9gsPh6iz68c+lczEGQM3V/GADtGDtxRQ31jmSVBKL1jK04nvWfXWvIUImNfnH3kf iDDUDGAnkjQgjcXuQ6a4VuWuEC8bTOR7qieLkAE391AGwrp2msXuEG5eXaF9F0sTB4El xJRLA5INBmlDwvcdz5MRIV2c+bmSNsIetglQf8jjepx0Kkn5lCf+xSkGUABJGpgf9L5C 7oa9Su9IFvIN+49vDAK5NqyrW+NLNVYtYBXw4n/n1hQuT6+hy/YomwcPhAuxTRqu1mZp QD6g== 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=McKoVh+N19/by+JX+tAFDeAdWMpkmvRdXmDrSN1l5r9HR7nM2gqEEuH+nsqsb2GdVD oUdOqfNkgOYYhLVA54iurzj+ZJggBqZIiXXq+GKV6I3LesHC/aMMYKC0XrK+j8Fk1Ouw GR3r21z20iat6qIzVaN5Ker/91eVMwarY2xUIDQz/qALhFlSMMC1+EFb2a6r3hBruxKX QX6BPvofGDNMZ+YUDmF4F05olSXdtql+9/z5ki5LBU/h/tZbY3FSmIw4uEOqQn9+/exD 7Lx+Sl6XBfV3HRmNCNrd0II1wS11I/GNb+iwLdav4nuc+uChXnLIw3dBVZh2W3WtGrh4 H6cQ== X-Gm-Message-State: AOAM531J/hMY5y9y+rKWn8HxCZDFxTQwyoRF8bgGnUWw8IHjcQPya6ib 4Gql/r85VulXM0OWEFy03CVlwg== X-Received: by 2002:a63:145f:: with SMTP id 31mr19792396pgu.383.1590260280791; Sat, 23 May 2020 11:58:00 -0700 (PDT) Received: from x1.lan ([2605:e000:100e:8c61:c94:a67a:9209:cf5f]) by smtp.gmail.com with ESMTPSA id 25sm9297319pjk.50.2020.05.23.11.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 11:58:00 -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, Jens Axboe Subject: [PATCH 01/12] block: read-ahead submission should imply no-wait as well Date: Sat, 23 May 2020 12:57:44 -0600 Message-Id: <20200523185755.8494-2-axboe@kernel.dk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200523185755.8494-1-axboe@kernel.dk> References: <20200523185755.8494-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