Whamcloud - gitweb
b=18649 set wait_recovery_complete() MAX value to max recovery time estimated
[fs/lustre-release.git] / lustre / kernel_patches / patches / prune-icache-use-trylock-sles10.patch
1 --- linux/fs/inode.c.orig       2009-01-24 03:28:57.000000000 +0800
2 +++ linux/fs/inode.c    2009-01-24 03:30:18.000000000 +0800
3 @@ -418,7 +418,9 @@ static void prune_icache(int nr_to_scan)
4         int nr_scanned;
5         unsigned long reap = 0;
6  
7 -       down(&iprune_sem);
8 +       if (down_trylock(&iprune_sem))
9 +               return;
10 +
11         spin_lock(&inode_lock);
12         for (nr_scanned = 0; nr_scanned < nr_to_scan; nr_scanned++) {
13                 struct inode *inode;