aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiang Yi <[email protected]>2017-06-02 11:45:09 +0800
committerNicholas Bellinger <[email protected]>2017-07-06 22:57:54 -0700
commit12f66e4a0f7b5624901ba4301210e026c9ddf78d (patch)
treee6252d4b7445ec9ff3e7411e958f5d52f356bfca /tools/perf/scripts/python
parenteceb4459df4a5b6127ae479280168847b9780b25 (diff)
target: reject COMPARE_AND_WRITE if emulate_caw is not set
In struct se_dev_attrib, there is a field emulate_caw exposed as a /sys/kernel/config/target/core/$HBA/$DEV/attrib/. If this field is set zero, it means the corresponding struct se_device does not support the scsi cmd COMPARE_AND_WRITE In function sbc_parse_cdb(), go ahead and reject scsi COMPARE_AND_WRITE if emulate_caw is not set, because it has been explicitly disabled from user-space. (Make pr_err ratelimited - nab) Signed-off-by: Jiang Yi <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions