]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Fix races with ib_resize_cq()
authorBryan O'Sullivan <bos@pathscale.com>
Thu, 28 Sep 2006 16:00:23 +0000 (09:00 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 28 Sep 2006 18:17:12 +0000 (11:17 -0700)
commit7a26c47412b201e1977ad42b760885f825158915
tree523874b1a1ad97cbfee58737952dc38ce717a518
parentbf3258ec418a008ab4672787ebff2c5837dd1e69
IB/ipath: Fix races with ib_resize_cq()

The resize CQ function changes the memory used to store the queue.
Other routines need to honor the lock before accessing the pointer
to the queue and verify that the head and tail are in range.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_cq.c