diff options
author | Bart Van Assche <bvanassche@acm.org> | 2010-11-26 19:58:27 +0100 |
---|---|---|
committer | David Dillow <dillowda@ornl.gov> | 2011-01-10 21:44:42 +0100 |
commit | 536ae14e7588e85203d4b4147c041309be5b3efb (patch) | |
tree | 9a7e459a914e138d0b02487c7ab40ae9ffe6c05c /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | IB/srp: allow lockless work posting (diff) | |
download | linux-536ae14e7588e85203d4b4147c041309be5b3efb.tar.xz linux-536ae14e7588e85203d4b4147c041309be5b3efb.zip |
IB/srp: don't move active requests to their own list
We use req->scmnd != NULL to indicate an active request, so there's no
need to keep a separate list for them. We can afford the array iteration
during error handling, and dropping it gives us one less item that needs
lock protection.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
[ broken out and small cleanups by David Dillow ]
Signed-off-by: David Dillow <dillowda@ornl.gov>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 41ecb46adf15..924d8e9c6672 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -148,7 +148,6 @@ struct srp_target_port { struct srp_iu *tx_ring[SRP_SQ_SIZE]; struct list_head free_reqs; - struct list_head req_queue; struct srp_request req_ring[SRP_CMD_SQ_SIZE]; struct work_struct work; |