]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/amso1100: Add spinlocks to serialize ib_post_send/ib_post_recv
authorTom Tucker <tom@opengridcomputing.com>
Tue, 3 Oct 2006 14:46:41 +0000 (09:46 -0500)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Oct 2006 16:51:13 +0000 (09:51 -0700)
commitce3b43372bfcf805ebc8219249aa51b4305f372f
treec76aa076673165e66d905e5271c8deca90329f68
parent2ae70b79026a41be2cca1395853bfbe312e0d3a9
RDMA/amso1100: Add spinlocks to serialize ib_post_send/ib_post_recv

The AMSO driver was not thread-safe in the post WR code and had
code that would sleep if the WR post FIFO was full. Since these
functions can be called on interrupt level I changed the sleep to a
udelay.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/amso1100/c2_qp.c