]> git.karo-electronics.de Git - mv-sheeva.git/commit
ceph: do not clear I_COMPLETE from d_release
authorSage Weil <sage@newdream.net>
Mon, 28 Feb 2011 20:49:15 +0000 (12:49 -0800)
committerSage Weil <sage@newdream.net>
Thu, 3 Mar 2011 18:09:52 +0000 (10:09 -0800)
commit16a8b70a5a757db513f036bbcc73309f6c507d81
treee075716a8e58149894fcad3fa36ebf6ea16cfc6e
parentb545cc1505eb49247071ce9f4092665de788ca00
ceph: do not clear I_COMPLETE from d_release

First, this was racy anyway: d_release isn't called until well after the
dentry is unhashed.  Second, this runs afoul of the recent dcache change
that clears d_parent prior to calling d_release (949854d0), causing a NULL
pointer dereference.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c