public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John McCutchan <john@johnmccutchan.com>
To: Amy Griffis <amy.griffis@hp.com>
Cc: linux-kernel@vger.kernel.org, Robert Love <rlove@rlove.org>
Subject: Re: [PATCH] inotify kernel API
Date: Fri, 26 May 2006 12:12:26 -0400	[thread overview]
Message-ID: <BAYC1-PASMTP09B12D11BE4D74DD6A06E3B99E0@CEZ.ICE> (raw)
Message-ID: <1148659946.7612.7.camel@localhost.localdomain> (raw)
In-Reply-To: <20060526021030.GA4936@zk3.dec.com>

On Thu, 2006-05-25 at 22:10 -0400, Amy Griffis wrote:
> After stress testing and completing audit patches to use this API,
> I've made the following changes:
> 
>     (*) Allow callers to share the refcounting for an inotify_watch.
>         If the caller has embedded the inotify_watch in one of its own
>         structs, both inotify and the caller may need to use refcounts
>         for that data.  Since the caller is ultimately responsible for
>         freeing the inotify_watch data, they must register a destroy
>         function to be called on the last put_inotify_watch.  Also
>         provide inotify_init_watch() to enable a caller to use
>         refcounts before calling inotify_add_watch().
> 

Seems sane

> 	
>     (*) Allow callers to remove watches from their event handler.
>         Audit uses this feature to remove a watch after an
>         IN_MOVE_SELF event.  Another similar use could be to have
>         functionality similar to IN_ONESHOT, but have it apply to a
>         subset of events in the mask.
>     (*) Fixed a deadlock in inotify_dev_queue_event().
> 
>     (*) Fixed memleaks in inotify_destroy() and with IN_ONESHOT masks.
> 
>     (*) Re-ordered calls to event handler with IN_IGNORED events.
>         Since caller may do final put here, this must be the last
>         thing inotify does with an inotify_watch.
> 
> I did some stress tests and performance comparisons on inotify with
> and without this patch.  The tests I used and some results are posted
> here:


Having only glanced at your latest code, all of your changes and bug
fixes look good. Thanks very much for putting the effort into auditing
and testing inotify. 

-- 
John McCutchan <john@johnmccutchan.com>

  reply	other threads:[~2006-05-26 17:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-26  2:10 [PATCH] inotify kernel API Amy Griffis
     [not found] ` <1148659946.7612.7.camel@localhost.localdomain>
2006-05-26 16:12   ` John McCutchan [this message]
2006-05-28  2:42   ` Amy Griffis
2006-05-28  8:35     ` Arjan van de Ven
2006-05-28 15:49       ` Al Viro
2006-05-30  9:40 ` Andrew Morton
2006-05-30 13:51   ` Amy Griffis

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=BAYC1-PASMTP09B12D11BE4D74DD6A06E3B99E0@CEZ.ICE \
    --to=john@johnmccutchan.com \
    --cc=amy.griffis@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rlove@rlove.org \
    /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