From 830f6645220dd68726ffa0ac4ee1c6374db1223a Mon Sep 17 00:00:00 2001 From: shadow Date: Mon, 8 Sep 2008 08:55:43 +0000 Subject: [PATCH] add workaround for race in dcache with patchless client. Branch b1_8_gate b=15975 i=johann i=adilger --- lustre/llite/llite_internal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 1.8.3.1