aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2005-11-15 00:09:10 -0800
committerLinus Torvalds <[email protected]>2005-11-15 08:59:19 -0800
commit1887b93529410633b5529a7c2d304897dbed5b3e (patch)
treebb51359d16e40503dc8faa56bd429311d3514bda /fs/jbd/commit.c
parentfa63b229829e73361900183bc1ae21b71b6c2dae (diff)
[PATCH] knfsd: make sure nfsd doesn't hog a cpu forever
Being kernel-threads, nfsd servers don't get pre-empted (depending on CONFIG). If there is a steady stream of NFS requests that can be served from cache, an nfsd thread may hold on to a cpu indefinitely, which isn't very friendly. So it is good to have a cond_resched in there (just before looking for a new request to serve), to make sure we play nice. Signed-off-by: Neil Brown <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions