]> git.baikalelectronics.ru Git - kernel.git/commit
IB/fmr_pool: Stop ib_fmr threads from contributing to load average
authorAnton Blanchard <anton@samba.org>
Tue, 30 Oct 2007 21:57:43 +0000 (14:57 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 30 Oct 2007 21:57:43 +0000 (14:57 -0700)
commit11e612917060217f574042d77315455decd5d386
tree6f47d656cf44fe1f38c9b3cf2476c4f209209bec
parent8f6d96a7744f3c7108821b594e46fd03000be4d2
IB/fmr_pool: Stop ib_fmr threads from contributing to load average

I noticed my machine was at a constant load average of 1. This was
because ib_create_fmr_pool calls kthread_create but does not
immediately wake the thread up.

Change to using kthread_run so we enter ib_fmr_cleanup_thread(), set
TASK_INTERRUPTIBLE, then go to sleep.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/fmr_pool.c