target/user: Fix UFLAG_UNKNOWN_OP handling
authorAndy Grover <agrover@redhat.com>
Thu, 3 Sep 2015 23:03:44 +0000 (16:03 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Sep 2015 07:32:34 +0000 (00:32 -0700)
commited97d0cd78a337450e17eb613bdeec15e729af46
tree6323aab22019fbd788531d4a04bd0c116fc81027
parent06b967e429cfb76494badb9ffdd69e934ba72c77
target/user: Fix UFLAG_UNKNOWN_OP handling

Calling transport_generic_request_failure() from here causes list
corruption. We should be using target_complete_cmd() instead.

Which we do in all other cases, so the UNKNOWN_OP case can become just
another member of the big else/if chain in tcmu_handle_completion().

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c