Message ID | 20200618144355.17324-13-axboe@kernel.dk (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=SYs/=77=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 22ADB14E3 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 18 Jun 2020 14:44:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D89B520888 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 18 Jun 2020 14:44:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="JsQWJAr0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D89B520888 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 678588D0024; Thu, 18 Jun 2020 10:44:18 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 62AB88D0018; Thu, 18 Jun 2020 10:44:18 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 517288D0024; Thu, 18 Jun 2020 10:44:18 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0099.hostedemail.com [216.40.44.99]) by kanga.kvack.org (Postfix) with ESMTP id 344728D0018 for <linux-mm@kvack.org>; Thu, 18 Jun 2020 10:44:18 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id E2B91AA25D for <linux-mm@kvack.org>; Thu, 18 Jun 2020 14:44:17 +0000 (UTC) X-FDA: 76942602954.04.drink10_48169ec26e11 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id B369680A5DEA for <linux-mm@kvack.org>; Thu, 18 Jun 2020 14:44:17 +0000 (UTC) X-Spam-Summary: 2,0,0,a6dc5c12b1bf3ba5,d41d8cd98f00b204,axboe@kernel.dk,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1515:1534:1539:1568:1711:1714:1730:1747:1777:1792:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3876:3877:5007:6114:6261:6642:6653:10004:11026:11473:11658:11914:12438:12517:12519:12555:12895:13069:13311:13357:13894:14181:14384:14394:14721:21080:21444:21627:21990:30054:30064,0,RBL:209.85.215.195:@kernel.dk:.lbl8.mailshell.net-66.100.201.201 62.2.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: drink10_48169ec26e11 X-Filterd-Recvd-Size: 3754 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by imf31.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Thu, 18 Jun 2020 14:44:17 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id l24so3005635pgb.5 for <linux-mm@kvack.org>; Thu, 18 Jun 2020 07:44:17 -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:reply-to :mime-version:content-transfer-encoding; bh=qn8Ub7OYxVXKid0SneeEv6VlK8roF4pAhw3PBRQGk58=; b=JsQWJAr0eX5i4/3VH0JUUcbrX1hvyikPQulQivfaSDiMps3VzdLvSQq6dC4JKqWrJw KNxWMk6jyBDtv6zAbNsi8EXWu/yzVZs9PhGYrbDhl/fbSE8G4wRID9uPFVW7kqxk71SV 0TMZ2olNJApcg9LZpxFyKjUmCe4HMfr+UszmCR8CNyND2jnymuGfLJggvQZrlKsGiP5H olUIpqHBAvyxiNTFfvQ13/71tmHFNQyLLqdFLI0ERuAdJTxyxlimD9W8/4OLmmmYJWbC NDlNdD05mAC1WxkMhISVU5ejMHN0Tp6Wbi9rsSKqKY3u8ZOVaCzS4KBi9ffc4A0l9I/a Yiuw== 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:reply-to:mime-version:content-transfer-encoding; bh=qn8Ub7OYxVXKid0SneeEv6VlK8roF4pAhw3PBRQGk58=; b=U1apirY2GuXfrXctGYwqcp3fzXm8G4Q6yXtykbkhu05daLT7e81OkQLqSxr2u9G9f/ ADHa7zYaU1/pD6LyMFEFn511dJ5SNTinUJVrLKNaXWHPuxuEOlc83T4ocSo18GSfxwVu vJvFB7tvNXGsMwYVO/PkVcsEEdzb4z3eH83v+DcCz26DDu9eEx67a1v+C10rnoKqNt8L g5hn+iaZrsMX/21WsQwApZcMxVbh1Sw+grSO6l4+okAv1JKfK1kZuetEzsknNhGeg0eX MUB2EttaM8LgQvYYIBKWzmw+O/ZINh8umlim/giwFpmFspUmlbEh1IidO+p0j8D9hk+O Ugmw== X-Gm-Message-State: AOAM5323RsekcOeQVcR4CLumx8PeJZtwg2cFuke6xuML7ymouQT/9Ve/ SjCS4vzXNs/Jz5ISWUczK6/rZA== X-Google-Smtp-Source: ABdhPJxqRDix9IaoTIWmuLrGVEzpKy6hFma+ZgZz9Se6n9okXrRAwv8gfsXZq8bmQZ3+Gotx4PSctg== X-Received: by 2002:a65:6119:: with SMTP id z25mr3404328pgu.52.1592491456371; Thu, 18 Jun 2020 07:44:16 -0700 (PDT) Received: from x1.localdomain ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id g9sm3127197pfm.151.2020.06.18.07.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 07:44:14 -0700 (PDT) From: Jens Axboe <axboe@kernel.dk> 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 <axboe@kernel.dk>, Chris Mason <clm@fb.com> Subject: [PATCH 12/15] btrfs: flag files as supporting buffered async reads Date: Thu, 18 Jun 2020 08:43:52 -0600 Message-Id: <20200618144355.17324-13-axboe@kernel.dk> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200618144355.17324-1-axboe@kernel.dk> References: <20200618144355.17324-1-axboe@kernel.dk> Reply-To: "[PATCHSET v7 0/15]"@smtpin04.hostedemail.com, Add@smtpin04.hostedemail.com, support@smtpin04.hostedemail.com, for@smtpin04.hostedemail.com, async@smtpin04.hostedemail.com, buffered@smtpin04.hostedemail.com, reads@smtpin04.hostedemail.com MIME-Version: 1.0 X-Rspamd-Queue-Id: B369680A5DEA X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/15] block: provide plug based way of signaling forced no-wait semantics
|
expand
|
On Thu, Jun 18, 2020 at 08:43:52AM -0600, Jens Axboe wrote: > btrfs uses generic_file_read_iter(), which already supports this. > > Acked-by: Chris Mason <clm@fb.com> > Signed-off-by: Jens Axboe <axboe@kernel.dk> Can you please CC the mailinglist for btrfs patches? Thanks.
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 2c14312b05e8..234a418eb6da 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -3472,7 +3472,7 @@ static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) static int btrfs_file_open(struct inode *inode, struct file *filp) { - filp->f_mode |= FMODE_NOWAIT; + filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC; return generic_file_open(inode, filp); }