From 787a4292a8b4731e70c2de0242bff3583448c8bc Mon Sep 17 00:00:00 2001 From: green Date: Wed, 6 Jun 2007 17:02:29 +0000 Subject: [PATCH] b=11706 r=eeb,adilger,nic(original author) Insert cond_resched in ptlrpc_main to give other threads a chance to use some cp u. --- lustre/ChangeLog | 7 +++++++ lustre/ptlrpc/service.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 68ca7e7..99c3a94 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -268,6 +268,13 @@ Description: Accessing a block bevice can re-enable I/O when Lustre is Details : dev_clear_rdonly(bdev) must be called in kill_bdev() instead of blkdev_put(). +Severity : minor +Bugzilla : 11706 +Description: service threads may hog cpus when ther eis a lot of requests + coming +Details : Insert cond_resched to give other threads a chance to use some of + the cpu + -------------------------------------------------------------------------------- 2007-05-03 Cluster File Systems, Inc. diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 7b5aa0c..96dab33 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -957,6 +957,8 @@ static int ptlrpc_main(void *arg) lc_watchdog_disable(watchdog); + cond_resched(); + l_wait_event_exclusive (svc->srv_waitq, ((thread->t_flags & SVC_STOPPING) != 0 && svc->srv_n_difficult_replies == 0) || -- 1.8.3.1