From: shadow Date: Mon, 8 Sep 2008 08:55:43 +0000 (+0000) Subject: add workaround for race in dcache with patchless client. X-Git-Tag: v1_7_100~1^423~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=830f6645220dd68726ffa0ac4ee1c6374db1223a;p=fs%2Flustre-release.git add workaround for race in dcache with patchless client. Branch b1_8_gate b=15975 i=johann i=adilger --- diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 212377f..f72219d 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -721,7 +721,6 @@ static inline unsigned long dir_pages(struct inode *inode) return (inode->i_size + CFS_PAGE_SIZE - 1) >> CFS_PAGE_SHIFT; } -/* llite/namei.c */ int ll_objects_destroy(struct ptlrpc_request *request, struct inode *dir); struct inode *ll_iget(struct super_block *sb, ino_t hash, struct lustre_md *lic); @@ -818,6 +817,11 @@ int ll_fiemap(struct inode *inode, struct ll_user_fiemap *fiemap, int num_bytes); /* llite/dcache.c */ +/* llite/namei.c */ +/** + * protect race ll_find_aliases vs ll_revalidate_it vs ll_unhash_aliases + */ +extern spinlock_t ll_lookup_lock; extern struct dentry_operations ll_init_d_ops; extern struct dentry_operations ll_d_ops; extern struct dentry_operations ll_fini_d_ops;