]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit031ed737517592fbf4f3460071a942eb41f00500
tree9a7e459a914e138d0b02487c7ab40ae9ffe6c05c
parent5c6e2e07b684c502edb8bcc968d2f1980e898067
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