IB/srp: consolidate hot-path variables into cache lines
authorDavid Dillow <dillowda@ornl.gov>
Fri, 26 Nov 2010 20:34:46 +0000 (15:34 -0500)
committerDavid Dillow <dillowda@ornl.gov>
Mon, 10 Jan 2011 20:44:51 +0000 (15:44 -0500)
commit9af762719e8f8fa282de02997dced593030eb238
tree707ebec104ed79499935fe6367357121fbb6906e
parente9684678221441f886b4d7c74f8770bb0981737a
IB/srp: consolidate hot-path variables into cache lines

Put the variables accessed together in the hot-path into common
cachelines, and separate them by RW vs RO to avoid false dirtying.
We keep a local copy of the lkey and rkey in the target to avoid
traversing pointers (and associated cache lines) to find them.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: David Dillow <dillowda@ornl.gov>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h