All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target: tcmu: add missing pr attributes to passthrough backends
@ 2020-04-01 13:21 Bodo Stroesser
  2020-04-01 20:05 ` Michael Christie
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Bodo Stroesser @ 2020-04-01 13:21 UTC (permalink / raw)
  To: target-devel

In commit b49d6f7885306ee636d5c1af52170f3069ccf5f7 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.
This patch adds the new attribute as well as the "pr control" attributes
enforce_pr_isids and force_pr_aptpl to passthrough_attrib_attrs.

Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
---
 drivers/target/target_core_configfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index ff82b21fdcce..c5a974c5b31d 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -1203,6 +1203,9 @@ struct configfs_attribute *passthrough_attrib_attrs[] = {
 	&attr_hw_block_size,
 	&attr_hw_max_sectors,
 	&attr_hw_queue_depth,
+	&attr_emulate_pr,
+	&attr_enforce_pr_isids,
+	&attr_force_pr_aptpl,
 	&attr_alua_support,
 	&attr_pgr_support,
 	NULL,
-- 
2.12.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-03 10:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-01 13:21 [PATCH] target: tcmu: add missing pr attributes to passthrough backends Bodo Stroesser
2020-04-01 20:05 ` Michael Christie
2020-04-02 14:11 ` Bodo Stroesser
2020-04-02 18:58 ` Michael Christie
2020-04-02 23:30 ` David Disseldorp
2020-04-03 10:26 ` Bodo Stroesser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.