From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E36DC433E6 for ; Mon, 25 Jan 2021 21:49:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D290521D94 for ; Mon, 25 Jan 2021 21:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732831AbhAYVs6 (ORCPT ); Mon, 25 Jan 2021 16:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732829AbhAYVia (ORCPT ); Mon, 25 Jan 2021 16:38:30 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E013C061788 for ; Mon, 25 Jan 2021 13:36:22 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id q131so9153595pfq.10 for ; Mon, 25 Jan 2021 13:36:22 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=vbflCwsTzdwckYq+nt69B7PshniTZLSQZH2EgtCpbjY=; b=MisYfjeV1+yJJ3EyNZVbYKhxvcL1wdfp1GqYzgg9aS0kBU94oBe/N6zUSbMWDLG830 YkS4v+Hst0dNPffxnmExEbjnK45EgbnlofP9DWgU9FUMyW7mg7h8fvOUG7UPxTS7Wgbt gTyEQcQLXFphymi9GsX8nBAPRJ5l1X40+e5JdBLk7YkXcbswQjYIckZtHxkDbKKnEtNZ ynMGBjJtS2gGBxzv7q7q2G4T8oTW0b5iadd7f77fpVH9Xgyrzo0SciZMPTIwdKPhETJ5 xjJ4T2hW2j/jbGFHJGfWlsK3nguhKrfxqsgWC7zzs4RiYUHpy67GR/d4cdpgkewwejQA +nMg== 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:mime-version :content-transfer-encoding; bh=vbflCwsTzdwckYq+nt69B7PshniTZLSQZH2EgtCpbjY=; b=G9WrIZzChqbTcjiYqJ+NcYPLYZuYILg7l8IH3VjH8dZmN4JarjS3BA9qq9oi4xg89q XfL5N23Ogu3xEJm485J5JdThKc0f8+peCRQlIWKqnXdUT4GZ2wKkjU3Hvn7PlqwJghZr GVmttuwvKFOFCas73FnGeQWQ2A78eyUgoGklaQN7up4eh+HhkPUtSH5mBmLzyiVZUY71 rZ2tvJ5ORNkuh24Alaxq1pIHjN6or/drk6I/QpeQqnLCTz7L7Tv582pOjGYuaOphBnr1 tvsuQ3r07/auey0F3cecek4DkotMoSJbSG6MC0wuuIysxQRVv9B+Z50khM1RV3iHrcAw qYYg== X-Gm-Message-State: AOAM5307pQEVz9vmeMsIqXFU8oSfFwHCKmd7KI1S6FoyCPp4Zb4rFGZn JB+1ieHjERvVQXThusTvllvNow== X-Google-Smtp-Source: ABdhPJyi3f44AaldZMWwmJEJwDD7SHMh1XbqHzmCX87Sv4/Q9ziBfSw/HSo3aH7WyjHYY/jwk5ojGw== X-Received: by 2002:a62:7e46:0:b029:19e:786b:9615 with SMTP id z67-20020a627e460000b029019e786b9615mr2274628pfc.37.1611610581555; Mon, 25 Jan 2021 13:36:21 -0800 (PST) Received: from localhost.localdomain (cpe-72-132-29-68.dc.res.rr.com. [72.132.29.68]) by smtp.gmail.com with ESMTPSA id i3sm9638913pfq.194.2021.01.25.13.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 13:36:21 -0800 (PST) From: Jens Axboe To: linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org Cc: torvalds@linux-foundation.org, viro@zeniv.linux.org.uk Subject: [PATCHSET RFC] support RESOLVE_CACHED for statx Date: Mon, 25 Jan 2021 14:36:11 -0700 Message-Id: <20210125213614.24001-1-axboe@kernel.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi, This is a followup to the RESOLVE_CACHED addition that allows us to speedup the io_uring open side (and enable RESOLVE_CACHED through openat2). Mostly straight forward, as you can see from patch 1, this just adds AT_STATX_CACHED that sits on top of that. Patch 2 is the mostly ugly part, but not sure how we can do this any better - we need to ensure that any sort of revalidation or sync in ->getattr() honors it too. Patch 3 is just adapting to this in io_uring. fs/9p/vfs_inode.c | 2 ++ fs/afs/inode.c | 3 +++ fs/ceph/inode.c | 2 ++ fs/cifs/inode.c | 3 +++ fs/coda/inode.c | 7 ++++++- fs/ecryptfs/inode.c | 3 +++ fs/fuse/dir.c | 2 ++ fs/gfs2/inode.c | 2 ++ fs/io_uring.c | 21 ++++++++++++++------- fs/kernfs/inode.c | 8 +++++++- fs/nfs/inode.c | 3 +++ fs/ocfs2/file.c | 3 +++ fs/orangefs/inode.c | 3 +++ fs/stat.c | 4 +++- fs/ubifs/dir.c | 7 ++++++- fs/udf/symlink.c | 3 +++ fs/vboxsf/utils.c | 4 ++++ include/uapi/linux/fcntl.h | 2 ++ 18 files changed, 71 insertions(+), 11 deletions(-) -- Jens Axboe