Message ID | 20200522202311.10959-9-axboe@kernel.dk (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Se88=7E=vger.kernel.org=linux-fsdevel-owner@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 0CFA114B7 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 22 May 2020 20:23:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E90DA207FB for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 22 May 2020 20:23:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="uBr7svy9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731132AbgEVUXm (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 22 May 2020 16:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731088AbgEVUXa (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 22 May 2020 16:23:30 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91C0C061A0E for <linux-fsdevel@vger.kernel.org>; Fri, 22 May 2020 13:23:28 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id z15so2502093pjb.0 for <linux-fsdevel@vger.kernel.org>; Fri, 22 May 2020 13:23: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=39qQrTBLEctUrGanLy/C45/WjdVfQkC7faPzmr+qhpI=; b=uBr7svy9tGM1kfB0BhVdX6NmzQX7rjQdOtGeI9ETv3djnnaJou6LDEVAoqvNhiiMVT /Y5aMZKUeucWj4+6prged/kK2w3O11+J7ITuX3qF2rDWVpxOGNqwSl0Hy8USWsr9ntfH wTY67840FUisgxyeUli0TTVeTuG/PHpzi31HVq2pkUzGI7PT1MsmMlwDsnc/BVD/45NU bV0QmFFlKDq2DiZ6DxAELytGXg4aFefVWKQ5tYTu+5vUtoGLWwL0eIHhz4hZAfNx4D3p /hFGWFMxUuY/F/k91LWw7i7MJyeaK8gEpjfwnHCZfozr1yisHgoRMD5fqyyZGLgF68/T lIWw== 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=39qQrTBLEctUrGanLy/C45/WjdVfQkC7faPzmr+qhpI=; b=dicadCW53YtjOv1/WEIS6tgAHPmIEU1OaM1DAHZjvN+ydmqscWhAFBEua2S39FAtk/ CgH1op2ltcsryR84IHbmez8wjKkQNK9uuUaKi9nL6umLvKXVJQDEp1CWjjXbz/BPlxtP GruBvGmEap+dELkOmPhKbUvF1L33wZ4S/vBrkotiCchqIIRkofQRQo6og3hQOcoOABi7 BSeSUPP/nosuMtuGDXNrXhUQMXyQGTkijkv9OzFvq2ju2fD0BpWTp/hj0POXvFqxZfxE aKnfT7hFfSmudj02MER5q5/aMG90112R9SCfsfwkr1ZyHsYLpocJ86bbMdpggjfhFlIr Rxzw== X-Gm-Message-State: AOAM530DUxZrdGitG9JiPqpPdPJPDd7KCJ39c0C3J3RagQFv+FoCI0zi V4bkuaY0CKmVB++UDak1EvHp/w== X-Google-Smtp-Source: ABdhPJxx2gppjGUSOrpOA5NJuWG9g1kSxTIapFlBHOL94NWzUmJF8nmeuziyDIoMZKnC+btQ+HzhUQ== X-Received: by 2002:a17:902:d894:: with SMTP id b20mr16375293plz.156.1590179008383; Fri, 22 May 2020 13:23:28 -0700 (PDT) Received: from x1.lan ([2605:e000:100e:8c61:e0db:da55:b0a4:601]) by smtp.gmail.com with ESMTPSA id e19sm7295561pfn.17.2020.05.22.13.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 13:23:27 -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, Jens Axboe <axboe@kernel.dk> Subject: [PATCH 08/11] xfs: flag files as supporting buffered async reads Date: Fri, 22 May 2020 14:23:08 -0600 Message-Id: <20200522202311.10959-9-axboe@kernel.dk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200522202311.10959-1-axboe@kernel.dk> References: <20200522202311.10959-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
Add support for async buffered reads
|
expand
|
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 4b8bdecc3863..97f44fbf17f2 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1080,7 +1080,7 @@ xfs_file_open( return -EFBIG; if (XFS_FORCED_SHUTDOWN(XFS_M(inode->i_sb))) return -EIO; - file->f_mode |= FMODE_NOWAIT; + file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC; return 0; }
XFS uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe <axboe@kernel.dk> --- fs/xfs/xfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)