From: sashiko-bot@kernel.org
To: "Andrey Albershteyn" <aalbersh@kernel.org>,
ebiggers@kernel.org, hch@lst.de,
"Carlos Maiolino" <cem@kernel.org>,
fsverity@lists.linux.dev
Cc: david@fromorbit.com
Subject: Re: [PATCH v18 06/15] xfs: use read ioend for fsverity data verification
Date: Mon, 02 Nov 2026 14:57:14 +0000 [thread overview]
Message-ID: <sashiko-outbox-193620@kernel.org> (raw)
In-Reply-To: <20261102144147.2393369-7-aalbersh@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] xfs: missing include of xfs_fsverity.h in fs/xfs/xfs_super.c breaks build
--
commit ee4503160b45b8debf89daa601b6a9be79307262
Author: Andrey Albershteyn <aalbersh@kernel.org>
xfs: use read ioend for fsverity data verification
This commit uses read ioends to offload fsverity data verification to a
dedicated fsverity workqueue, avoiding deadlocks with metadata read
completions. It also adds a slab cache and mempool for fsverity ioend
structures and passes fsverity_info from the iomap context to the ioend.
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index 5a06132aa3846..3a7d7334e9a65 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -2516,8 +2516,20 @@ xfs_init_caches(void)
> if (!xfs_parent_args_cache)
> goto out_destroy_xmi_cache;
>
> +#ifdef CONFIG_FS_VERITY
> + xfs_fsverity_ioend_cache = kmem_cache_create("xfs_fsverity_ioend",
> + sizeof(struct xfs_fsverity_ioend),
> + 0, 0, NULL);
> + if (!xfs_fsverity_ioend_cache)
> + goto out_destroy_parent_args_cache;
> +#endif
> +
> return 0;
>
> +#ifdef CONFIG_FS_VERITY
> + out_destroy_parent_args_cache:
> + kmem_cache_destroy(xfs_parent_args_cache);
> +#endif
> out_destroy_xmi_cache:
> kmem_cache_destroy(xfs_xmi_cache);
> out_destroy_xmd_cache:
> @@ -2580,6 +2592,9 @@ xfs_destroy_caches(void)
> * destroy caches.
> */
> rcu_barrier();
> +#ifdef CONFIG_FS_VERITY
> + kmem_cache_destroy(xfs_fsverity_ioend_cache);
> +#endif
> kmem_cache_destroy(xfs_parent_args_cache);
> kmem_cache_destroy(xfs_xmd_cache);
> kmem_cache_destroy(xfs_xmi_cache);
> @@ -2660,10 +2675,14 @@ init_xfs_fs(void)
> if (error)
> goto out;
>
> - error = xfs_init_workqueues();
> + error = xfs_fsverity_init();
> if (error)
> goto out_destroy_caches;
>
> + error = xfs_init_workqueues();
> + if (error)
> + goto out_fsverity_exit;
> +
> error = xfs_mru_cache_init();
> if (error)
> goto out_destroy_wq;
> @@ -2740,6 +2759,8 @@ init_xfs_fs(void)
> xfs_mru_cache_uninit();
> out_destroy_wq:
> xfs_destroy_workqueues();
> + out_fsverity_exit:
> + xfs_fsverity_exit();
> out_destroy_caches:
> xfs_destroy_caches();
> out:
> @@ -2763,6 +2784,7 @@ exit_xfs_fs(void)
> xfs_cleanup_procfs();
> xfs_mru_cache_uninit();
> xfs_destroy_workqueues();
> + xfs_fsverity_exit();
> xfs_destroy_caches();
> xfs_uuid_table_free();
> }
[Severity: Low]
Does fs/xfs/xfs_super.c fail to build at this commit because xfs_fsverity.h
is not included yet?
In fs/xfs/xfs_super.c, xfs_init_caches() and xfs_destroy_caches() reference
xfs_fsverity_ioend_cache and struct xfs_fsverity_ioend when CONFIG_FS_VERITY
is enabled, while init_xfs_fs() and exit_xfs_fs() unconditionally call
xfs_fsverity_init() and xfs_fsverity_exit().
Those declarations and static inline stubs live in fs/xfs/xfs_fsverity.h,
which is not included in fs/xfs/xfs_super.c until a later commit in the
series, 996c2dec93ad ("xfs: add fs-verity support").
Should #include "xfs_fsverity.h" be moved into fs/xfs/xfs_super.c in this
commit so the series remains bisectable under both CONFIG_FS_VERITY=y and
CONFIG_FS_VERITY=n?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261102144147.2393369-1-aalbersh@kernel.org?part=6
next prev parent reply other threads:[~2026-11-02 14:57 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 14:41 [PATCH v18 00/15] fs-verity support for XFS with post EOF merkle tree Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 01/15] xfs: introduce fsverity on-disk changes Andrey Albershteyn
2026-11-02 15:08 ` sashiko-bot
2026-11-02 14:41 ` [PATCH v18 02/15] xfs: don't allow to enable DAX on fs-verity sealed inode Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 03/15] xfs: disable direct read path for fs-verity files Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 04/15] xfs: don't report dio_mem_align and dio_offset_align for fsverity files Andrey Albershteyn
2026-11-03 9:23 ` Christoph Hellwig
2026-11-02 14:41 ` [PATCH v18 05/15] xfs: handle fsverity I/O in write/read path Andrey Albershteyn
2026-11-02 15:13 ` sashiko-bot
2026-11-03 9:37 ` Christoph Hellwig
2026-11-03 13:55 ` Andrey Albershteyn
2026-11-03 14:53 ` Christoph Hellwig
2026-11-03 15:26 ` Andrey Albershteyn
2026-11-03 22:03 ` Eric Biggers
2026-11-02 14:41 ` [PATCH v18 06/15] xfs: use read ioend for fsverity data verification Andrey Albershteyn
2026-11-02 14:57 ` sashiko-bot [this message]
2026-11-03 9:39 ` Christoph Hellwig
2026-11-02 14:41 ` [PATCH v18 07/15] xfs: add XFS_BMAPI_UNWRITTEN to unmap unwritten extents in __xfs_bunmapi() Andrey Albershteyn
2026-11-02 15:02 ` sashiko-bot
2026-11-03 9:41 ` Christoph Hellwig
2026-11-03 14:31 ` Andrey Albershteyn
2026-11-03 14:39 ` Christoph Hellwig
2026-11-03 14:45 ` Andrey Albershteyn
2026-11-03 14:49 ` Christoph Hellwig
2026-11-03 15:17 ` Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 08/15] xfs: don't remove written extents past EOF on fsverity inodes Andrey Albershteyn
2026-11-02 15:11 ` sashiko-bot
2026-11-03 9:42 ` Christoph Hellwig
2026-11-02 14:41 ` [PATCH v18 09/15] xfs: add fs-verity support Andrey Albershteyn
2026-11-02 15:34 ` sashiko-bot
2026-11-03 18:23 ` Eric Biggers
2026-11-02 14:41 ` [PATCH v18 10/15] xfs: initialize fs-verity on file open Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 11/15] xfs: add fs-verity ioctls Andrey Albershteyn
2026-11-02 15:24 ` sashiko-bot
2026-11-02 14:41 ` [PATCH v18 12/15] xfs: advertise fs-verity being available on filesystem Andrey Albershteyn
2026-11-02 14:41 ` [PATCH v18 13/15] xfs: check and repair the verity inode flag state Andrey Albershteyn
2026-11-02 15:28 ` sashiko-bot
2026-11-02 14:41 ` [PATCH v18 14/15] xfs: introduce health state for corrupted fsverity metadata Andrey Albershteyn
2026-11-02 15:16 ` sashiko-bot
2026-11-02 14:41 ` [PATCH v18 15/15] xfs: enable ro-compat fs-verity flag Andrey Albershteyn
2026-11-02 15:35 ` sashiko-bot
2026-11-03 9:44 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-193620@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=aalbersh@kernel.org \
--cc=cem@kernel.org \
--cc=david@fromorbit.com \
--cc=ebiggers@kernel.org \
--cc=fsverity@lists.linux.dev \
--cc=hch@lst.de \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox