From: sashiko-bot@kernel.org
To: "John Groves" <john@jagalactic.com>
Cc: nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org
Subject: Re: [PATCH V14 02/12] famfs: Module operations, fs_context, and mount
Date: Sat, 29 Aug 2026 17:28:10 +0000 [thread overview]
Message-ID: <20260829172811.022991F000E9@smtp.kernel.org> (raw)
In-Reply-To: <010001a04e80d952-12403958-9576-475d-a375-b0948273892f-000000@email.amazonses.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The mount path explicitly rejects concurrent mounts of the same backing device, contradicting the commit message claim that multiple mounts should share the superblock.
--
commit c082254e4802428a0767926c0085c3cbeace41cb
Author: John Groves <john@groves.net>
famfs: Module operations, fs_context, and mount
This commit introduces the initial module operations for famfs, including
filesystem registration, mount parameter parsing, superblock initialization,
and DAX device lookup.
> diff --git a/fs/famfs/famfs_inode.c b/fs/famfs/famfs_inode.c
> new file mode 100644
> index 0000000000000..5a13903da61b7
> --- /dev/null
> +++ b/fs/famfs/famfs_inode.c
[ ... ]
> +static int
> +famfs_get_tree(struct fs_context *fc)
> +{
> + struct famfs_fs_info *fsi = fc->s_fs_info;
> + struct super_block *sb;
> + struct inode *inode;
> + dev_t daxdevno;
> + int err;
[ ... ]
> + /* This will set sb->s_dev=daxdevno */
> + sb = sget_dev(fc, daxdevno);
> + if (IS_ERR(sb)) {
> + pr_debug("%s: sget_dev error\n", __func__);
> + return PTR_ERR(sb);
> + }
> +
> + if (sb->s_root) {
> + pr_debug("%s: found a matching superblock for %s\n",
> + __func__, fc->source);
> +
> + /* We don't expect to find a match by dev_t; if we do, it must
> + * already be mounted, so we bail
> + */
> + err = -EBUSY;
> + goto deactivate_out;
[Severity: Medium]
Does returning -EBUSY here intentionally prevent sharing the superblock
across multiple mounts?
The commit message states: "so a second mount of the same device shares one
super, much as a block filesystem keys on its block device." However, this
check appears to explicitly reject concurrent mounts of the same DAX backing
device rather than sharing the existing superblock.
> + } else {
> + pr_debug("%s: initializing new superblock for %s\n",
> + __func__, fc->source);
> + famfs_fill_super(sb, fc);
> + }
--
Sashiko AI review · https://sashiko.dev/#/patchset/010001a04e801a4e-8eb212cd-b263-4043-ab65-33e480d2d7d4-000000@email.amazonses.com?part=2
next prev parent reply other threads:[~2026-08-29 17:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260829171004.7336-1-john@jagalactic.com>
2026-08-29 17:10 ` [PATCH V14 00/12] Subject: [PATCH v14 00/12] famfs: the Fabric-Attached Memory File System (standalone) John Groves
2026-08-29 17:10 ` [PATCH V14 01/12] dax: replace exported dax_dev_get() with non-allocating dax_dev_find() John Groves
2026-08-29 17:11 ` [PATCH V14 02/12] famfs: Module operations, fs_context, and mount John Groves
2026-08-29 17:28 ` sashiko-bot [this message]
2026-08-29 17:11 ` [PATCH V14 03/12] famfs: Add daxdev table and dax notify_failure support John Groves
2026-08-29 17:32 ` sashiko-bot
2026-08-29 17:11 ` [PATCH V14 04/12] famfs: Introduce inode_operations and super_operations John Groves
2026-08-29 17:11 ` [PATCH V14 05/12] famfs: Introduce file_operations read/write John Groves
2026-08-29 17:25 ` sashiko-bot
2026-08-29 17:11 ` [PATCH V14 06/12] famfs: Introduce mmap and VM fault handling John Groves
2026-08-29 17:26 ` sashiko-bot
2026-08-29 17:11 ` [PATCH V14 07/12] famfs: MAP_CREATE ioctl and fmap ingest (ABI 44) John Groves
2026-08-29 17:30 ` sashiko-bot
2026-08-29 17:12 ` [PATCH V14 08/12] famfs: iomap_begin and file-to-dax offset resolution John Groves
2026-08-29 17:25 ` sashiko-bot
2026-08-29 17:12 ` [PATCH V14 09/12] famfs: Register secondary daxdevs by path (FAMFSIOC_DAXDEV_OPEN) John Groves
2026-08-29 17:25 ` sashiko-bot
2026-08-29 17:13 ` [PATCH V14 10/12] famfs: Add runtime operation-permission (opts) framework John Groves
2026-08-29 17:13 ` [PATCH V14 11/12] famfs: Report device capacity via statfs so df works John Groves
2026-08-29 17:30 ` sashiko-bot
2026-08-29 17:13 ` [PATCH V14 12/12] famfs: Add documentation John Groves
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=20260829172811.022991F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=john@jagalactic.com \
--cc=linux-cxl@vger.kernel.org \
--cc=nvdimm@lists.linux.dev \
--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