]> Pileus Git - ~andy/linux/commit
IB/iser: Remove redundant locking from iser scsi command response flow
authorOr Gerlitz <ogerlitz@voltaire.com>
Mon, 8 Feb 2010 13:23:11 +0000 (13:23 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 17:41:14 +0000 (09:41 -0800)
commit88ec415772144f4fc4a50b123bb6200de686898d
tree8cd6d06b8cc4a1e1420b4d013f260188fc854f8a
parent962b4b528ba87c8d837bb04794a1918c7de631cd
IB/iser: Remove redundant locking from iser scsi command response flow

Currently the iSER receive completion flow takes the session lock
twice.  Optimize it to avoid the first one by letting
iser_task_rdma_finalize() be called only from the cleanup_task
callback invoked by iscsi_free_task, thus reducing the contention on
the session lock between the scsi command submission to the scsi
command completion flows.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/iser/iser_initiator.c