Commit 944be0b224724fcbf63c3a3fe3a5478c325a6547

Authored by Ingo Molnar
Committed by Linus Torvalds
1 parent 92ba0ee277

[PATCH] close_files(): add scheduling point

close_files() can sometimes take long enough to trigger the soft lockup
detector.

Cc: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -430,8 +430,10 @@
430 430 while (set) {
431 431 if (set & 1) {
432 432 struct file * file = xchg(&fdt->fd[i], NULL);
433   - if (file)
  433 + if (file) {
434 434 filp_close(file, files);
  435 + cond_resched();
  436 + }
435 437 }
436 438 i++;
437 439 set >>= 1;