Skip to content

Commit 40ddd6d

Browse files
mikechristiemartinkpetersen
authored andcommitted
scsi: target: iscs: Make write_pending_must_be_called a bit field
Subsequent commits add more on/off type of settings to the target_core_fabric_ops struct so this makes write_pending_must_be_called a bit field instead of a bool to better organize the settings. Signed-off-by: Mike Christie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0bb80ec commit 40ddd6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/target/iscsi/iscsi_target_configfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,5 +1589,5 @@ const struct target_core_fabric_ops iscsi_ops = {
15891589
.tfc_tpg_nacl_auth_attrs = lio_target_nacl_auth_attrs,
15901590
.tfc_tpg_nacl_param_attrs = lio_target_nacl_param_attrs,
15911591

1592-
.write_pending_must_be_called = true,
1592+
.write_pending_must_be_called = 1,
15931593
};

include/target/target_core_fabric.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ struct target_core_fabric_ops {
113113
struct configfs_attribute **tfc_tpg_nacl_param_attrs;
114114

115115
/*
116-
* Set this member variable to true if the SCSI transport protocol
116+
* Set this member variable if the SCSI transport protocol
117117
* (e.g. iSCSI) requires that the Data-Out buffer is transferred in
118118
* its entirety before a command is aborted.
119119
*/
120-
bool write_pending_must_be_called;
120+
unsigned int write_pending_must_be_called:1;
121121
};
122122

123123
int target_register_template(const struct target_core_fabric_ops *fo);

0 commit comments

Comments
 (0)