]> www.infradead.org Git - users/jedix/linux-maple.git/commit
target/user: Fix UFLAG_UNKNOWN_OP handling
authorAndy Grover <agrover@redhat.com>
Thu, 3 Sep 2015 23:03:44 +0000 (16:03 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:43 +0000 (21:10 -0700)
commitfd7aa504ee5a626b1db64ab64c620cf70948e6f3
tree8b8a323df0dddb7c7a47867706d6f3cc19af204d
parent448532d3c757a92057c01569de6c29ed6c1a58fa
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>
Orabug: 25395066
(cherry picked from commit ed97d0cd78a337450e17eb613bdeec15e729af46)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c