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)
commite52e6080ca10e0a8ce2a35c86965945cdfa8ed7e
treec76aa076673165e66d905e5271c8deca90329f68
parentebf7a227dd1d810203a19642655d2fa293f395dd
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