]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Completion queue callback needs to be single threaded
authorRalph Campbell <ralph.campbell@qlogic.com>
Thu, 17 Jun 2010 23:14:15 +0000 (23:14 +0000)
committerRoland Dreier <rolandd@cisco.com>
Tue, 6 Jul 2010 21:13:58 +0000 (14:13 -0700)
commitf1ee2c0fb179e1d4ad8ebe8c9ee2f6ab9d581f36
tree6a03fa2f2f23f87db55e4ab0ec319a0511657ae8
parent41cb37c615c551a148224a349f13742adccc9421
IB/qib: Completion queue callback needs to be single threaded

Workqueues aren't exactly equivalent to tasklets since the callback
function may be called from multiple CPUs before the callback returns.
This causes completion notification callbacks to have MT bugs since
they weren't expecting this behavior. The fix is to use a single
threaded work queue.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_init.c