From: Jan Kara <jack@suse.cz>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Kara <jack@suse.cz>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Heinrich Schuchardt <xypron.debian@gmx.de>,
"Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
John McCutchan <john@johnmccutchan.com>,
Robert Love <rlove@rlove.org>, Eric Paris <eparis@parisplace.org>,
Cyrill Gorcunov <gorcunov@openvz.org>,
Pavel Emelyanov <xemul@parallels.com>,
Andrey Vagin <avagin@openvz.org>
Subject: Re: [PATCH] fs: don't remove inotify watchers from alive inode-s (v2)
Date: Thu, 2 Oct 2014 12:45:52 +0200 [thread overview]
Message-ID: <20141002104552.GC19748@quack.suse.cz> (raw)
In-Reply-To: <20140925083010.GA3096@quack.suse.cz>
On Thu 25-09-14 10:30:10, Jan Kara wrote:
> On Wed 24-09-14 13:19:47, Andrew Morton wrote:
> > On Wed, 24 Sep 2014 12:51:55 +0200 Jan Kara <jack@suse.cz> wrote:
> >
> > > Hello,
> > >
> > > Andrew, what do you think about the patch below? Al objected that it
> > > changes userspace visible behavior some time ago and then he didn't react
> > > to our explanations...
> >
> > Difficult situation. There's some really important information missing
> > from the changelog:
> >
> > - Who cares? Is there some real application which is hurting from
> > the current situation? If so, who, what, how and why. If not, then
> > why change anything?
> I believe Openvz guys hit this in their application but I'll defer to
> them for more details.
>
> > - A description of the userspace API change impact. How did the
> > interface change? What is the risk of this change causing damage to
> > real applications?
> I believe this was covered in the changelog. Without the patch depending
> on the order of unlinks for hardlinked file you sometimes get events:
> 4 (IN_ATTRIB)
> 400 (IN_DELETE_SELF)
> 8000 (IN_IGNORED)
>
> and sometimes you get events:
> 4 (IN_ATTRIB)
> <possibly more events happening for unlinked file>
> 8 (IN_CLOSE_WRITE)
> 400 (IN_DELETE_SELF)
> 8000 (IN_IGNORED)
>
> With the patch you'll always have the second case. So without the patch you
> don't receive some events if the file has at least 2 hardlinks and then
> gets unlinked. I think the risk that some application relies on *not* getting
> those events is pretty low (especially since in the common case of file
> without hardlinks you will get all those events).
Ping Andrew? Do you still need more info or are you now OK to merge the
patch?
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2014-10-02 10:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 15:45 [PATCH] fs: don't remove inotify watchers from alive inode-s (v2) Andrey Vagin
2014-09-19 15:56 ` [PATCH] inotify.7: describe ambiguous behaviour of IN_DELETE_SELF Andrey Vagin
2014-09-19 16:15 ` [PATCH] fs: don't remove inotify watchers from alive inode-s (v2) Cyrill Gorcunov
2014-09-24 10:51 ` Jan Kara
2014-09-24 20:19 ` Andrew Morton
2014-09-25 8:30 ` Jan Kara
2014-09-25 20:38 ` Cyrill Gorcunov
2014-10-02 10:45 ` Jan Kara [this message]
2014-10-02 19:44 ` Andrew Morton
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=20141002104552.GC19748@quack.suse.cz \
--to=jack@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=avagin@openvz.org \
--cc=eparis@parisplace.org \
--cc=gorcunov@openvz.org \
--cc=john@johnmccutchan.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=rlove@rlove.org \
--cc=viro@zeniv.linux.org.uk \
--cc=xemul@parallels.com \
--cc=xypron.debian@gmx.de \
/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