Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 944be0b2 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 92ba0ee2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;