Re: [PATCH v3] generic: add stress test for fanotify and inotify

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Mon, Feb 12, 2018 at 12:33:57PM +0800, Xiong Zhou wrote:
> On Mon, Feb 12, 2018 at 05:50:21AM +0200, Amir Goldstein wrote:
> > On Mon, Feb 12, 2018 at 2:41 AM, Xiong Zhou <xzhou@xxxxxxxxxx> wrote:
> > > On Sun, Feb 11, 2018 at 10:03:17PM +0200, Amir Goldstein wrote:
> > >> On Sun, Feb 11, 2018 at 8:59 AM, Xiong Zhou <xzhou@xxxxxxxxxx> wrote:
> > >> > Stress test for fanotify and inotify. Exercise fanotify and
> > >> > inotify user interfaces in loop while other stress tests going
> > >> > on in the watched test directory.
> > >> >
> > >> > Watching slab object inotify_inode_mark size, report fail
> > >> > it increases too fast. This may lead to a crash if OOM killer
> > >> > invoked. Fixed by this series:
> > >> >
> > >> > ab97f87 fsnotify: convert fsnotify_mark.refcnt from atomic_t to ref..
> > >> > 6685df3 fanotify: clean up CONFIG_FANOTIFY_ACCESS_PERMISSIONS ifdefs
> > >> > 3427ce7 fsnotify: clean up fsnotify()
> > >> > f37650f fanotify: fix fsnotify_prepare_user_wait() failure
> > >> > 9a31d7a fsnotify: fix pinning group in fsnotify_prepare_user_wait()
> > >>
> > >> That's a bit much. This commit below is the actual fix.
> > >> The rest are cleanups and other bug fixes.
> > >
> > > Cleanups are preparing for the fix.
> > 
> > No they are not. They are general cleanups and other bug fixed *after*
> > the fix. heck, 3 of the patches you listed are not from Miklos' patchset
> > at all.
> 
> Ya. I messed up, I did not check all the details well enough, just
> confirmed there was dependency.

Initially I was checking email and saw
http://lkml.iu.edu/hypermail/linux/kernel/1710.3/01317.html
So I grabbed some commits from git log.

I am not sure which specific commit fixes that issue, or all of them is
needed, so I listed the series for accuracy(lazy).

You think it's too many and may confuse people. I think it's better
to make it clear that fix comes from a series, if you want to
revert or cherry-pick etc, be careful.

Thanks,
Xiong

> 
> > 
> > If you wanted to include also prep patches that would only be:
> > 
> > 24c2030 fsnotify: clean up fsnotify_prepare/finish_user_wait()
> > 
> > But I personally find that information to be irrelevant in test context.
> > 
> > > I believe it's better to list
> > > the whole series. They are a patchset for some reason.
> > 
> > You gotta know who your audience are.
> 
> Yes, I know.
> 
> > Patchset is for a reason - the reason is that all patches should be
> > reviewed and merged together. But that's got nothing to do with the
> > reason you should list the fix commit in test description.
> > The reason for that is that testers needs to know if test is expected to
> > fail or pass on the kernel they are using.
> 
> AFAIK, known issue tracking is not handled by fstests. Listing them
> is helping make things more clear, not for telling people expected
> results. If I post this case before any fix commits available, not
> listing any commits does make sense.
> 
> > 
> > Listing the cleanup patches does not serve this purpose.
> > In fact, it may confuse people testing stable kernels, because stable
> > kernel could have fix patches applied but not all cleanup patches.
> 
> Interesting, I'm listing all of them and I'm saying "fixed by this series"
> not "fixed by this commit".
> 
> THanks,
> Xiong
> > 
> > 
> > >
> > >> It could also help testers to know the upstream kernel version
> > >> where the fix landed:
> > >
> > > There is no such info in other cases listing kernel commits. If
> > > people want to know, they will find it out.
> > >
> > 
> > Fair enough. Looking at other tests for common practices is a good
> > idea - the practice is to list only the fix commits. There are a few tests
> > that list more than a single commit, but in those cases the bug fix itself
> > is probably spread over few commits.
> > 
> > Cheers,
> > Amir.
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux