[PATCH 3/3] sysfs: fix race condition around sd->s_dentry, take#2

2007-06-12 Thread Greg Kroah-Hartman
From: Tejun Heo <[EMAIL PROTECTED]> Allowing attribute and symlink dentries to be reclaimed means sd->s_dentry can change dynamically. However, updates to the field are unsynchronized leading to race conditions. This patch adds sysfs_lock and use it to synchronize updates to sd->s_dentry. Due

[PATCH 3/3] sysfs: fix race condition around sd-s_dentry, take#2

2007-06-12 Thread Greg Kroah-Hartman
From: Tejun Heo [EMAIL PROTECTED] Allowing attribute and symlink dentries to be reclaimed means sd-s_dentry can change dynamically. However, updates to the field are unsynchronized leading to race conditions. This patch adds sysfs_lock and use it to synchronize updates to sd-s_dentry. Due to

[PATCH 3/3] sysfs: fix race condition around sd->s_dentry, take#2

2007-06-10 Thread Tejun Heo
Allowing attribute and symlink dentries to be reclaimed means sd->s_dentry can change dynamically. However, updates to the field are unsynchronized leading to race conditions. This patch adds sysfs_lock and use it to synchronize updates to sd->s_dentry. Due to the locking around ->d_iput, the

[PATCH 3/3] sysfs: fix race condition around sd-s_dentry, take#2

2007-06-10 Thread Tejun Heo
Allowing attribute and symlink dentries to be reclaimed means sd-s_dentry can change dynamically. However, updates to the field are unsynchronized leading to race conditions. This patch adds sysfs_lock and use it to synchronize updates to sd-s_dentry. Due to the locking around -d_iput, the