]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: Add missing emulate_pr attribute to passthrough backends
authorBodo Stroesser <bstroesser@ts.fujitsu.com>
Mon, 27 Apr 2020 15:08:20 +0000 (17:08 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 May 2020 02:39:17 +0000 (22:39 -0400)
commit3e8c8461042bbf7a63997a142611c3817b15f9fa
treecd57bbf7cfbcab7125fbe136ba2e62b5f7b76300
parenta523493133afe0a15d2e5ec01fad57d84eec71cf
scsi: target: Add missing emulate_pr attribute to passthrough backends

In commit f5b36e69a517 ("scsi: target: add emulate_pr backstore attr to
toggle PR support") the new attribute emulate_pr was added.

passthrough_parse_cdb() uses the attribute's value to distinguish whether
reservation commands should be rejected or not.  But the new attribute was
not added to passthrough_attrib_attrs, so in pscsi and tcmu - the users of
passthrough_parse_cdb() - the attribute is not available to change parser's
behavior.

Link: https://lore.kernel.org/r/20200427150823.15350-2-bstroesser@ts.fujitsu.com
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c