Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp263983ybm; Tue, 26 May 2020 16:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXJbmSYmAadggV0FzGHAQn+FYc3xULHQdan2hZFw3gjPFWcKIWK/kVF0PrfJHR45wyMycK X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr4336859edw.350.1590535280205; Tue, 26 May 2020 16:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590535280; cv=none; d=google.com; s=arc-20160816; b=OF/m5Agant5sWCvPjH0Q4hpMod57J+zC42llufOjkDXB8ZZ/rkKfr9M1qD7k2f6Tch Aa7coYa9lCWlbrJE8kW4l0+A1tETX/t32pZLj4qAvu2DSvtk3Yc2+k9uHbEHk/q5xcMs YChGxXYzdpxqOwoyV3EAByI+73nBqoHqLo2Pyx8WI55K8X7kB6Ii1TkxhuHva2UfHeZo X6PJ/c3bPkRuWChEH9qRxH7m/BqL9qmSsLsSHNZkqIYQN/UNTLC50JFfB9JsZXrrsUR8 2Ro7ba0QYPXD+wyOsV93vFHW/O/D2G0BX0vBE1qccD5v4ZaPS53PcksVPSPo/GdNTJmL AD3A== 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=LpuXvU/PwSGQGjarIP5I58hv7Zj24N1R3UNEgL0jNDI=; b=pPs9/zV9ExX2v6pW7jTQh6Y0o9CrseqPyMLKXMndDrYi+dXsPpJk4/ZDcLaQCTc7Zm ORS0kvZm4mjHovm7Q9bKKe0tilzaLgjc9BM/LvFJnZaQu18Ct/eRzFadkJabxpOmxnIK TcxOfuYcJkI/tt1fq214qQMTx2L/S+i6/m/JDSTPL8/JO+cXBfgeoeAKW1kj+9tRiQWd 34mZrIj810mP0Nlg13OQDS67O72ZoyI3FJC6XAQWdCnPCXaHtq/fUzCHolupgMAzcQUE mx83BQDEGSisBKIob0Ev8dc7Ks9GkEBNx3S3bSc5uh0w2zu4JD4WDoARS+ebc0N2aVRj pRPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=rFyVjlx1; 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 r28si755312edl.121.2020.05.26.16.20.56; Tue, 26 May 2020 16:21:20 -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=rFyVjlx1; 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 S1728955AbgEZTwM (ORCPT + 99 others); Tue, 26 May 2020 15:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389600AbgEZTvj (ORCPT ); Tue, 26 May 2020 15:51:39 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC2F7C03E96F for ; Tue, 26 May 2020 12:51:37 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id v63so10628185pfb.10 for ; Tue, 26 May 2020 12:51:37 -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=LpuXvU/PwSGQGjarIP5I58hv7Zj24N1R3UNEgL0jNDI=; b=rFyVjlx1z2FAJn581hW2m8bZ9qQeVyi56a/pWp00XB5VUt4lek5ugSoCmtZrlde+kL tqa+1PfUl7M2/e9l+7pKHpZQtgFYG4+bog1h7E0GzkngfisOv6OenkOwIP49E+Nby6+f n3A60kLcYP3f42QbUwlhziWKSrx9XE0R68EGvyIxzXWOUrQT6B0FfWHTWWDCwdxgu/93 ZQMy6v5XLA5PHMfQ8913VJLQtb5tlNTD/giDskk7TgQrwjFvlPGLsUSQCT2W4wbP22Be mdo47Iq7BMkJzVco7I1VX/a7oWaZcUGsobhAzz8Kq1gdvewllJ0BMVepmGsBwrX++cOp OxHw== 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=LpuXvU/PwSGQGjarIP5I58hv7Zj24N1R3UNEgL0jNDI=; b=LUIpCqtjjzZe5kmmgKSj0qjZVzlBfpe+gkxDhtgpZsQWvoWIMKFM2Hk0zfiNn+AV/y UilIg8owvI7AotObEAXtDwWoq+253nCNFUC3tsF5NRd/dbghCa5eW8hAkS2qBLiJJeJ7 2UJN26MhpFwvmFTYcPSHZ9TFG0sus2WVZEG0KyROj/7jBo0yfSjTncNYdi7axUi3blY9 UvI2YjV6mnRXnVL73YOBRGfnkXuJ9C17iOXX2xcOnPWs9PG4kXh0IexGo81BHhsyYYVZ ZJWMFbYBoU2uMNfiXUEUirg2f5/qY4H4sYMsEg3tPJM2qokJJwjBmqSv9DObDfu6FTJ7 MeSA== X-Gm-Message-State: AOAM533TP4+N3250ywaZJJPjX1zWsLGA/a3m1VuDjjmyX+JyqWnvVfQW kECTWjk8pxB2m2zzL5AZbt+t/bJ81GEegg== X-Received: by 2002:a62:e408:: with SMTP id r8mr392923pfh.213.1590522697426; Tue, 26 May 2020 12:51:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 12:51:36 -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 08/12] block: flag block devices as supporting IOCB_WAITQ Date: Tue, 26 May 2020 13:51:19 -0600 Message-Id: <20200526195123.29053-9-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 Signed-off-by: Jens Axboe --- fs/block_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index d1e08bba925a..980cfce01c9a 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1851,7 +1851,7 @@ static int blkdev_open(struct inode * inode, struct file * filp) */ filp->f_flags |= O_LARGEFILE; - filp->f_mode |= FMODE_NOWAIT; + filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC; if (filp->f_flags & O_NDELAY) filp->f_mode |= FMODE_NDELAY; -- 2.26.2