]> git.baikalelectronics.ru Git - kernel.git/commit
target: move depth_left manipulation out of transport_generic_request_failure
authorChristoph Hellwig <hch@infradead.org>
Mon, 17 Oct 2011 17:56:49 +0000 (13:56 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:46 +0000 (03:21 +0000)
commitdd9ae86c0c7bb35938c7b2710968d0231b86fb23
tree3b97ab6a88f58aa162a38f1e052e6655588553d0
parentd1a59a14a961a78d59359a7c2f8e89e4a49f4e32
target: move depth_left manipulation out of transport_generic_request_failure

We only need to decrement dev->depth_left if failing a command from
__transport_execute_tasks.  Instead of doing it first thing in
transport_generic_request_failure and requiring a pseudo-flag argument
for it just opencode the decrement in the two callers (which should
be factored into a single one anyway)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c