Re: Patch: 2.6.7/fs/dnotify.c - make dn_lock a regular spinlock

From: Andrew Morton
Date: Thu Jun 17 2004 - 05:55:16 EST


"Adam J. Richter" <adam@xxxxxxxxxxxxx> wrote:
>
> In the near future, I expect to try to eliminate dn_lock by
> using parent_inode->i_sem instead, as the kmem_cache_t in dnotify.c
> does not need to be protected by a separate lock.

inode->i_lock would be better. Take care to keep it an "innermost" VFS
lock though. Move kmem_cache_free() outside the lock altoghter.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/