[lkml]   [2003]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] sysfs_remove_dir Vs dcache_readdir race fix
    On Thu, Nov 20, 2003 at 03:55:25PM +0530, Maneesh Soni wrote:
    > Actually race is not directly between dcache_readdir and sysfs_remove_dir but
    > it is like this
    > cpu 0 cpu 1
    > dcache_dir_open()
    > --> adds the cursor dentry
    > sysfs_remove_dir()
    > --> list_del_init cursor dentry
    > dcache_readdir()
    > --> loops forever on inititalized cursor dentry.

    Yes. Thanks for spotting...

    > Though all these operations happen under parent's i_sem, but it is dropped
    > between ->open() and ->readdir() as both are different calls.
    > I think people will also agree that there is no need for sysfs_remove_dir()
    > to modify d_subdirs list.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:58    [W:0.029 / U:3.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site