OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ba0ee
)
[PATCH] close_files(): add scheduling point
author
Ingo Molnar
<mingo@elte.hu>
Mon, 12 Feb 2007 08:52:26 +0000
(
00:52
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:30 +0000
(09:48 -0800)
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>
kernel/exit.c
patch
|
blob
|
history
diff --git
a/kernel/exit.c
b/kernel/exit.c
index
bc71fdf
..
14f1703
100644
(file)
--- a/
kernel/exit.c
+++ b/
kernel/exit.c
@@
-430,8
+430,10
@@
static void close_files(struct files_struct * files)
while (set) {
if (set & 1) {
struct file * file = xchg(&fdt->fd[i], NULL);
- if (file)
+ if (file)
{
filp_close(file, files);
+ cond_resched();
+ }
}
i++;
set >>= 1;