lkml.org 
[lkml]   [2008]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH -v3 8/8] dnotify: reimplement dnotify using fsnotify
    From
    Date
    On Fri, 2008-11-28 at 06:25 +0000, Al Viro wrote:
    > On Tue, Nov 25, 2008 at 12:21:33PM -0500, Eric Paris wrote:
    > > - inode->i_dnotify_mask |= arg & ~DN_MULTISHOT;
    > > - dn->dn_next = inode->i_dnotify;
    > > - inode->i_dnotify = dn;
    > > - spin_unlock(&inode->i_lock);
    > > -
    > > - if (filp->f_op && filp->f_op->dir_notify)
    > > - return filp->f_op->dir_notify(filp, arg);
    > > + dn->dn_next = entry->private;
    > > + entry->private = dn;
    > > + dnotify_recalc_inode_mask(entry);
    > > + spin_unlock(&inode->i_fsnotify_lock);
    > > + fsnotify_mark_put(entry);
    > > + fsnotify_put_group(dnotify_group);
    >
    > Now, that is interesting - you've just taken out the fscked-in-head
    > ->dir_notify(). The action is quite laudable, but it deserves being
    > announced properly:
    >
    > * Remove the hopelessly misguided ->dir_notify(). The only instance (cifs)
    > has been broken by design from the very beginning; the objects it creates
    > are never destroyed, keep references to struct file they can outlive, nothing
    > that could possibly evict them exists on close(2) path *and* no locking
    > whatsoever is done to prevent races with close(), should the previous, er,
    > deficiencies someday be dealt with.
    >
    > While we are at it, removing the only call of that method is obviously
    > only a half of the job...

    crap, I actually meant to move that out to the actual do_fcntl() call to
    get it out of my way. I did see that it is useless since we don't
    handle responses in any way and obviously this has nothing to do with
    dnotify.....

    I'll poke the cifs people to see if they are ok with dropping it
    altogether properly....



    \
     
     \ /
      Last update: 2008-11-29 00:47    [W:0.027 / U:2.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site