diff options
author | Andy Grover <agrover@redhat.com> | 2014-04-15 21:13:12 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-05-16 00:08:51 (GMT) |
commit | 448ba904160f9d8f69217c28a1692cee5afbff88 (patch) | |
tree | d279470d99dc075fbb2e48b420159fddd267a596 /drivers/hwspinlock | |
parent | d1db0eea852497762cab43b905b879dfcd3b8987 (diff) | |
download | linux-448ba904160f9d8f69217c28a1692cee5afbff88.tar.xz |
target: Allow non-supporting backends to set pi_prot_type to 0
Userspace tools assume if a value is read from configfs, it is valid
and will not cause an error if the same value is written back. The only
valid value for pi_prot_type for backends not supporting DIF is 0, so allow
this particular value to be set without returning an error.
Reported-by: Krzysztof Chojnowski <frirajder@gmail.com>
Signed-off-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/hwspinlock')
0 files changed, 0 insertions, 0 deletions