- cond_resched-added-to-close_files.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     cond_resched() added to close_files()

has been removed from the -mm tree.  Its filename is

     cond_resched-added-to-close_files.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Eric Dumazet <dada1@xxxxxxxxxxxxx>

When a process exits, it might spend a lot of time in close_files() closing
thousand of files.

This is bad for latency, and in some cases can trigger 'BUG: soft lockup
detected on CPU#0!'

This patch makes sure a cond_resched() call is done every 32 (or 64) files
closed.  This also helps reducing number of files waiting in RCU queues for
final freeing as call_rcu() might have called force_quiescent_state()

Signed-off-by: Eric Dumazet <dada1@xxxxxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/exit.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN kernel/exit.c~cond_resched-added-to-close_files kernel/exit.c
--- 25/kernel/exit.c~cond_resched-added-to-close_files	Tue May  9 10:42:17 2006
+++ 25-akpm/kernel/exit.c	Tue May  9 10:42:17 2006
@@ -453,6 +453,7 @@ static void close_files(struct files_str
 			i++;
 			set >>= 1;
 		}
+		cond_resched();
 	}
 }
 
_

Patches currently in -mm which might be from dada1@xxxxxxxxxxxxx are

cond_resched-added-to-close_files.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux