Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230928020907.5730-1-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Mike Christie and committed by
Martin K. Petersen
40ddd6df 0bb80ecc

+3 -3
+1 -1
drivers/target/iscsi/iscsi_target_configfs.c
··· 1589 1589 .tfc_tpg_nacl_auth_attrs = lio_target_nacl_auth_attrs, 1590 1590 .tfc_tpg_nacl_param_attrs = lio_target_nacl_param_attrs, 1591 1591 1592 - .write_pending_must_be_called = true, 1592 + .write_pending_must_be_called = 1, 1593 1593 };
+2 -2
include/target/target_core_fabric.h
··· 113 113 struct configfs_attribute **tfc_tpg_nacl_param_attrs; 114 114 115 115 /* 116 - * Set this member variable to true if the SCSI transport protocol 116 + * Set this member variable if the SCSI transport protocol 117 117 * (e.g. iSCSI) requires that the Data-Out buffer is transferred in 118 118 * its entirety before a command is aborted. 119 119 */ 120 - bool write_pending_must_be_called; 120 + unsigned int write_pending_must_be_called:1; 121 121 }; 122 122 123 123 int target_register_template(const struct target_core_fabric_ops *fo);