]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/infiniband/ulp/srp/ib_srp.c
IB/srp: don't move active requests to their own list
authorBart Van Assche <bvanassche@acm.org>
Fri, 26 Nov 2010 18:58:27 +0000 (13:58 -0500)
committerDavid Dillow <dillowda@ornl.gov>
Mon, 10 Jan 2011 20:44:42 +0000 (15:44 -0500)
commit536ae14e7588e85203d4b4147c041309be5b3efb
tree9a7e459a914e138d0b02487c7ab40ae9ffe6c05c
parentdcb4cb85f4b7caac9769bce464fef16306a4758c
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>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h