From: Sage Weil Date: Tue, 26 Jul 2011 18:30:15 +0000 (-0700) Subject: ceph: handle racing calls to ceph_init_dentry X-Git-Tag: v3.1-rc1~220^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d0cbd1242aac969560ef8b90f26ee3b09a6a5c;p=pandora-kernel.git ceph: handle racing calls to ceph_init_dentry The ->lookup() and prepopulate_readdir() callers are working with unhashed dentries, so we don't have to worry. The export.c callers, though, need to initialize something they got back from d_obtain_alias() and are potentially racing with other callers. Make sure we don't return unless the dentry is properly initialized (by us or someone else). Reported-by: Al Viro Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed