target: Indicate success if writing 0 to pi_prot_type
authorAndy Grover <agrover@redhat.com>
Thu, 9 Jul 2015 16:56:47 +0000 (09:56 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 24 Jul 2015 06:39:59 +0000 (23:39 -0700)
commitbc1a7d6aff763ea29db6319185327f86b0fe93b6
tree98fba4ef9a5f113a886107661de56dbd579194c6
parentfd4e1393c414275d28577a2242f4e424cf80a605
target: Indicate success if writing 0 to pi_prot_type

See https://bugzilla.redhat.com/show_bug.cgi?id=1240687

Returning 0 from a configfs store function results in infinite retries.

Reported-by: Yanko Kaneti <yaneti@declera.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c