]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit4499dda85890e6726def812febaab5dc064cc920
tree3b97ab6a88f58aa162a38f1e052e6655588553d0
parentcc5d0f0f61645ca43d9a7320ec2f268bad5016c5
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