Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp217234ybg; Sat, 23 May 2020 12:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHSgCylr+Fdzw4Hz3g9J4zrGotil354nd51wrpbPNBDlz9YjGW+MZ8BTWu44+GWSZbi9SX X-Received: by 2002:aa7:d90e:: with SMTP id a14mr8055285edr.284.1590260424076; Sat, 23 May 2020 12:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590260424; cv=none; d=google.com; s=arc-20160816; b=UbQvmtbct4SUCwtP9sF9FrEgx69oSPdpWHz9X0H2US8GMDzQT5662bx5BtVROOuMob qZURClp6PCMO9Q0qaedDj7EocsrWaFI+eEdJCp8Uv/eMDBfrZNE48qeOMkpma3pG0gXd zRALHE9ybElYEG6XkqljrQU282mASTlacvtNwCIBUN98xSuWoOxXf9PWjljddXk4hMgh vD2DAM+s1NSc53Y50jfnJoH5rRn3nHcWq8Qomfm/wmGl7WuJ+tHHDoQWIxZSDZ/aX8HN FwOAd3DCwUGJoBfVkKK4B3SThkB2PVTSaQ3D/f98HFyV3EnADP83m/zB76nCG2ZXiwmd iKCw== 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=4QX6izj81MoWvGB/E4/khaJEguGwrdsEfxjduXmAWvc=; b=KexA4aht25SpS33E+4h7xL6aP41I+PcdPATqrAnH8sC7sxOJUBhAfHY4OzaLkQgQTl VgH5NHvj6h7iEsxAUDcm8RXRAa8NfbdkwqivbszGhaVeWrGEJvBspAXbIupmHZsdAa0G 50CZEiUjfb3maBZHt+8YFBRh4HyQ/M/guFQn7qGq03ShErFwHJw3veLHHxPePOV1Rr2U TL1UF/EGbNakFYyneHbYP/lqtpxuSxSrd33HTrieWTij29W0kIQjwwvf8Hy61PIHFGgO 4xn5zcZQTVUo0Qznamo7TQjbiF3ctkMg/yURV3UEAaqyHJRr1M7Q7EruQdD8ua4q6WGj gMOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=bB83Tj0B; 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 c59si6614735edd.430.2020.05.23.12.00.01; Sat, 23 May 2020 12:00:24 -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=bB83Tj0B; 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 S1728978AbgEWS6L (ORCPT + 99 others); Sat, 23 May 2020 14:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbgEWS6K (ORCPT ); Sat, 23 May 2020 14:58:10 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EFC6C061A0E for ; Sat, 23 May 2020 11:58:10 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id k7so6441393pjs.5 for ; Sat, 23 May 2020 11:58:10 -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=4QX6izj81MoWvGB/E4/khaJEguGwrdsEfxjduXmAWvc=; b=bB83Tj0BajwuSjWkcK8ehgNRsKT4dlqQdsgUPSjJiJ2iXaFPJSy+fQuN42JRHiuPAF Ds+TSO9sTx+8fbiOAVgtOWX6Sz5lYix1bG9WAh/F71WpAmuz6k6RoGgcULfHqhCzSSGy czJK+XJrC+LZTYdNLs5WA1tyopGAN51nNSKpEc4rmPTh+HjK5AUz5guhgngWLdElEoFp Y/U216s5zcrGi7OrgxVS0H1boXsUkpjkDmicuLJP4gJCppIK3k1wT0URrgfknJrl22Hn CRM8C/QHbp+xO5nT35RB17ABqdwxlpAFz/I5f7IJcf47ml75nwLzUmNlUz5/4oEh0drP Oicg== 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=4QX6izj81MoWvGB/E4/khaJEguGwrdsEfxjduXmAWvc=; b=hQ4yYNCNmq1Ymt/dkW6B3Sam1XVj7t/LX/RlXg4JpyFcNsHm8/xxJc8TxhAr9HNydz G7eEld7tkCCtDOhiOIHpvYaIGbvE/slRa3sNwIntiY+0m75O1bs4JiAh9x/dfzC5iEnX eIiUfOpqA/U4x99ftoKL09qEmPRpTgRMOtnU+3FYMT3r0cGBzO3AA7xK3pnlg+dgFDC9 UssiDX2c08q4ipkHb6P8mKJzLAEx4lmNh131HbQI0zpoQ7axNVbE+vl5Opqsmt8eiaJ0 ccnCaszzPF5EovLUIAew44vPAZsmN1wDky4cSvo35mLN8a/uAmeqxhMht1goW857vTRg ZrXg== X-Gm-Message-State: AOAM531HzAszTlPyR3eLINpP0wglRwZtNlfMGPiuNqI3Fraikn45pKhD 1F+llmPjMWErXQ2YsVzNQ9aw7w== X-Received: by 2002:a17:902:422:: with SMTP id 31mr21310761ple.310.1590260289753; Sat, 23 May 2020 11:58:09 -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.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 11:58:09 -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 08/12] block: flag block devices as supporting IOCB_WAITQ Date: Sat, 23 May 2020 12:57:51 -0600 Message-Id: <20200523185755.8494-9-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 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 86e2a7134513..ec8dccc81b65 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