diff options
author | Bart Van Assche <bvanassche@acm.org> | 2010-11-26 18:58:27 (GMT) |
---|---|---|
committer | David Dillow <dillowda@ornl.gov> | 2011-01-10 20:44:42 (GMT) |
commit | 536ae14e7588e85203d4b4147c041309be5b3efb (patch) | |
tree | 9a7e459a914e138d0b02487c7ab40ae9ffe6c05c /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | dcb4cb85f4b7caac9769bce464fef16306a4758c (diff) | |
download | linux-536ae14e7588e85203d4b4147c041309be5b3efb.tar.xz |
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 41ecb46..924d8e9 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; |