Whamcloud - gitweb
b=22632 also build mptlinux on SLES11
[fs/lustre-release.git] / lustre / kernel_patches / patches / prune-icache-use-trylock-rhel5.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 -       mutex_lock(&iprune_mutex);
8 +       if (!mutex_trylock(&iprune_mutex))
9 +               return;
10 +
11         spin_lock(&inode_lock);
12         for (nr_scanned = 0; nr_scanned < nr_to_scan; nr_scanned++) {
13                 struct inode *inode;