Linux 9p file system development
 help / color / mirror / Atom feed
From: "Eric Van Hensbergen" <eric.vanhensbergen@linux.dev>
To: "Dominique Martinet" <asmadeus@codewreck.org>
Cc: v9fs@lists.linux.dev
Subject: Re: recap of 9p problems in 6.9
Date: Tue, 09 Apr 2024 02:15:37 +0000	[thread overview]
Message-ID: <0d0b731bab0a074d37bd876f423b18e0034bed61@linux.dev> (raw)
In-Reply-To: <7b4724a5be3a5a5f4ab550741741ecf3479f7139@linux.dev>

April 8, 2024 at 7:11 PM, "Eric Van Hensbergen" <eric.vanhensbergen@linux.dev> wrote:
> April 7, 2024 at 11:17 PM, "Dominique Martinet" <asmadeus@codewreck.org> wrote:
> >  * open / unlink / fstat|ftruncate etc fail

Okay - a lot more digging on this one.  I'm wondering if these issues have to do with changes inside vfs_lookup -- there as a bit of code that was in there that I didn't quite understand.  Previously we always created a new inode on lookup (unless we were in cache mode) -- this leads to a lot of duplicate inode structs floating around.  One of the simplification changes was to remove this (but I left the comment in which talks about parallel unlinks) -- now the unlink in this case isn't in parallel here but I wonder if we were sidestepping this bug because unlink was essentially operating on its own inode and the open fd had a distinct inode structure that wasn't perturbed.

There's potentailly a relationship to the ACL issues Kent observed as well since there's a similar code path in create which uses a new inode and then associates ACLs with that.

I'm just still struggling why this requires a new inode structure if there is one already associated with the qid.path -- unless the inode numbers as being stored in the qid.path are being reused too quickly and there are unlinked inodes which still maintain that number in the cache??

      -eric

      parent reply	other threads:[~2024-04-09  2:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08  4:17 recap of 9p problems in 6.9 Dominique Martinet
2024-04-08 23:14 ` Eric Van Hensbergen
2024-04-09  0:11 ` Eric Van Hensbergen
2024-04-09  2:07   ` Dominique Martinet
2024-04-09 11:40     ` Eric Van Hensbergen
2024-04-09 20:57       ` Eric Van Hensbergen
2024-04-09  2:15   ` Eric Van Hensbergen [this message]

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=0d0b731bab0a074d37bd876f423b18e0034bed61@linux.dev \
    --to=eric.vanhensbergen@linux.dev \
    --cc=asmadeus@codewreck.org \
    --cc=v9fs@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