Message ID | 20230825135431.1317785-19-hao.xu@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 293B6C71133 for <linux-mm@archiver.kernel.org>; Fri, 25 Aug 2023 14:03:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AFFA92800D2; Fri, 25 Aug 2023 10:03:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AAFF42800D0; Fri, 25 Aug 2023 10:03:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 99F602800D2; Fri, 25 Aug 2023 10:03:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 876082800D0 for <linux-mm@kvack.org>; Fri, 25 Aug 2023 10:03:09 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5DB48B26B3 for <linux-mm@kvack.org>; Fri, 25 Aug 2023 14:03:09 +0000 (UTC) X-FDA: 81162793698.30.A01EFDD Received: from out-244.mta1.migadu.com (out-244.mta1.migadu.com [95.215.58.244]) by imf03.hostedemail.com (Postfix) with ESMTP id D840820005 for <linux-mm@kvack.org>; Fri, 25 Aug 2023 14:03:06 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="F3s/OJUc"; spf=pass (imf03.hostedemail.com: domain of hao.xu@linux.dev designates 95.215.58.244 as permitted sender) smtp.mailfrom=hao.xu@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692972187; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qTb/druvnHmAZS3W1u50TERu+WCPGmDec9gQaqemBTg=; b=0+jfkGl2N9Evvn/jz5SDGxNkPr0lfcKCXlUutnBkcyGXtTlZItY8v4v25OzGDNJTouurGs iUwfAOO1n+zxEZEQ2ldtlMw503OdYM6pFsq0cwg+19UX7aBP6hVh91TEsSzaw8Y9raNsb3 mQYmHcQ0cJWBSda6JZZ0Qg18OayZ0hY= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="F3s/OJUc"; spf=pass (imf03.hostedemail.com: domain of hao.xu@linux.dev designates 95.215.58.244 as permitted sender) smtp.mailfrom=hao.xu@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692972187; a=rsa-sha256; cv=none; b=pcieO6VddlwwZIKbFoVrQ0zTs0SMUnN1pTsZgkuC79k1B1KMzV1qaryFv1QJp7dvflcytB X10h4fljhL1OGpF0+MJG6i0Ecer2tMFOhJUctbkgJJ5FzXNiMUjMBh/F2i/X6JQoEycE9m MS5pSmcpQYp9zwHsz8QuYYkUIwBlnLs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1692972185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qTb/druvnHmAZS3W1u50TERu+WCPGmDec9gQaqemBTg=; b=F3s/OJUcPEY5Zlidje3R3yeS51LSjhWu/qJIZQ5RlOJtYZFuPHsEDcjE4qLEmmAUjn6Noq 1FuuA0oBiaR8ILzLTnrrBydu7XR0r/KR3HJXB7nZmLWLG0jXn8HNnNNNLFYiSbQJ1kLBWH sWlvtA/UHWBfhR+BdKG+F5ETxQfMgq0= From: Hao Xu <hao.xu@linux.dev> To: io-uring@vger.kernel.org, Jens Axboe <axboe@kernel.dk> Cc: Dominique Martinet <asmadeus@codewreck.org>, Pavel Begunkov <asml.silence@gmail.com>, Christian Brauner <brauner@kernel.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Stefan Roesch <shr@fb.com>, Clay Harris <bugs@claycon.org>, Dave Chinner <david@fromorbit.com>, "Darrick J . Wong" <djwong@kernel.org>, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-cachefs@redhat.com, ecryptfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, codalist@coda.cs.cmu.edu, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-mm@kvack.org, linux-nilfs@vger.kernel.org, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-mtd@lists.infradead.org, Wanpeng Li <wanpengli@tencent.com> Subject: [PATCH 18/29] xfs: set XBF_NOWAIT for xfs_buf_read_map if necessary Date: Fri, 25 Aug 2023 21:54:20 +0800 Message-Id: <20230825135431.1317785-19-hao.xu@linux.dev> In-Reply-To: <20230825135431.1317785-1-hao.xu@linux.dev> References: <20230825135431.1317785-1-hao.xu@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: D840820005 X-Rspam-User: X-Stat-Signature: iqutfu3q5tpt1a8f6dj37td333c66fkb X-Rspamd-Server: rspam01 X-HE-Tag: 1692972186-900081 X-HE-Meta: U2FsdGVkX19m34ttG0q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Hvtt7uMFRe81H+QzKump53R9/DnflT9EomNTtz41Fjmx0IzYxnsWRIZa5vQZ4S7X37WF6RVYjcQ2TbxgisWagJjRQvj/Nchx2ORwXi/h6Yi4dzLxvecGivvvw618a1u89AwQfUSkbNFtPxeAZvq3s50d 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 |
io_uring getdents
|
expand
|
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c index 6549e50d852c..016371f58f26 100644 --- a/fs/xfs/xfs_trans_buf.c +++ b/fs/xfs/xfs_trans_buf.c @@ -286,6 +286,8 @@ xfs_trans_read_buf_map( return 0; } + if (tp && (tp->t_flags & XFS_TRANS_NOWAIT)) + flags |= XBF_NOWAIT; error = xfs_buf_read_map(target, map, nmaps, flags, &bp, ops, __return_address); switch (error) {