mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
[PATCH] close_files(): add scheduling point
close_files() can sometimes take long enough to trigger the soft lockup detector. Cc: Eric Dumazet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
92ba0ee277
commit
944be0b224
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user