target: Allow userspace to write 1 to attrib/emulate_fua_write
authorAndy Grover <agrover@redhat.com>
Tue, 31 Mar 2015 22:04:37 +0000 (15:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 2 Apr 2015 04:42:51 +0000 (21:42 -0700)
commit86d65dc4fe74d5b3228fe13c5eff0b10ae6808eb
tree383ed332796de3fa1b6c5cc9fbec0a497e7e2fff
parent9bc6548f372d8c829235095d91de99d8df79db6e
target: Allow userspace to write 1 to attrib/emulate_fua_write

Before 4.0, reading attrib/emulate_fua_write has returned 1. Saved
configs created on a pre-4.0 kernel will try to write that back when
restoring LIO configuration. This should succeed with no effect,
and issue a warning.

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

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