Whamcloud - gitweb
b=11706
authorgreen <green>
Wed, 6 Jun 2007 17:02:29 +0000 (17:02 +0000)
committergreen <green>
Wed, 6 Jun 2007 17:02:29 +0000 (17:02 +0000)
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
lustre/ptlrpc/service.c

index 68ca7e7..99c3a94 100644 (file)
@@ -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. <info@clusterfs.com>
index 7b5aa0c..96dab33 100644 (file)
@@ -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) ||