Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / lustre / kernel_patches / patches / md-soft-lockups.patch
1 Index: linux-2.6.18-92.1.10/drivers/md/raid5.c
2 ===================================================================
3 --- linux-2.6.18-92.1.10.orig/drivers/md/raid5.c        2008-11-10 11:00:51.000000000 +0900
4 +++ linux-2.6.18-92.1.10/drivers/md/raid5.c     2008-11-10 11:02:38.000000000 +0900
5 @@ -3251,6 +3251,8 @@
6                 handle_stripe(sh, conf->spare_page, NULL);
7                 release_stripe(sh);
8  
9 +               cond_resched();
10 +
11                 spin_lock_irq(&conf->device_lock);
12         }
13         PRINTK("%d stripes handled\n", handled);