]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/srp: Fix crash in srp_reconnect_target
authorIshai Rabinovitz <ishai@mellanox.co.il>
Tue, 25 Jul 2006 16:54:09 +0000 (19:54 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 3 Aug 2006 16:44:22 +0000 (09:44 -0700)
commitd916a8f1b43b358685b1672390ead11f2d3b74c6
tree0ba2bd2f211bb95888aa608094610148c5728d3d
parent75df23e229acab85b704f4603bdf5efdc7960e6a
IB/srp: Fix crash in srp_reconnect_target

Protect against srp_reset_device() clearing the req_queue while
srp_reconnect_target() is in progress (note that state change at
the top of srp_reconnect_target() is not sufficient for this since
srp_reset_device() ignores the state).

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c