From 0c4e7cff44f7e11c238f14bdd70e08089fadc6d8 Mon Sep 17 00:00:00 2001 From: Wang Di Date: Sun, 25 Apr 2010 23:57:44 -0400 Subject: [PATCH] b=22513 Remove unecessary lock in read-ahead process. i=Robert.Read i=Eric.Mei --- lustre/llite/rw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 1884c01..1a96289 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -976,7 +976,6 @@ void ras_update(struct ll_sb_info *sbi, struct inode *inode, int zero = 0, stride_detect = 0, ra_miss = 0; ENTRY; - cfs_spin_lock(&sbi->ll_lock); cfs_spin_lock(&ras->ras_lock); ll_ra_stats_inc_sbi(sbi, hit ? RA_STAT_HIT : RA_STAT_MISS); @@ -1117,7 +1116,6 @@ out_unlock: RAS_CDEBUG(ras); ras->ras_request_index++; cfs_spin_unlock(&ras->ras_lock); - cfs_spin_unlock(&sbi->ll_lock); return; } -- 1.8.3.1