[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFyrXrwphh8vT0yHH91jr_K2CjXZfTq-uW-i3r8i-Qq7bg@mail.gmail.com>
Date: Wed, 23 Aug 2017 18:16:01 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Stefan Lippers-Hollmann <s.l-h@....de>
Cc: "Eric W. Biederman" <ebiederm@...ssion.com>,
Christian Brauner <christian.brauner@...onical.com>,
Christian Brauner <christian.brauner@...ntu.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
Al Viro <viro@...iv.linux.org.uk>,
Thorsten Leemhuis <regressions@...mhuis.info>
Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name
On Wed, Aug 23, 2017 at 5:42 PM, Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
> Let me try to think about alteratives. Clearly this is a regression
> and I need to fix it, I just need to figure out _how_.
Ok, sadly, I think it's unfixable with the current model.
We literally used to keep the wrong 'struct path' around, and sadly,
fixing the struct path to point to the right vfsmount fundamentally
means that we'd be keeping the mount count elevated for that pts
mount.
And that fundamentally means that umount() will return -EBUSY. There's
no way around it.
So I think I will have to just revert that fix.
Damn.
Now, I think there's a way forward: get rid of the 'struct path'
(which is bogus anyway), and only remember the pts denty.
Then, at TIOCGPTPEER time (which is why we currently have that 'struct
path' anyway), look up the right 'vfsmount' by looking up the 'pts'
path again.
That's a rather bigger patch than the one I'll have to revert, I'm afraid ;(
Linus
Powered by blists - more mailing lists