Commit 40ddd6df authored by Mike Christie's avatar Mike Christie Committed by Martin K. Petersen
Browse files

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: default avatarMike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230928020907.5730-1-michael.christie@oracle.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0bb80ecc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1589,5 +1589,5 @@ const struct target_core_fabric_ops iscsi_ops = {
	.tfc_tpg_nacl_auth_attrs	= lio_target_nacl_auth_attrs,
	.tfc_tpg_nacl_param_attrs	= lio_target_nacl_param_attrs,

	.write_pending_must_be_called	= true,
	.write_pending_must_be_called	= 1,
};
+2 −2
Original line number Diff line number Diff line
@@ -113,11 +113,11 @@ struct target_core_fabric_ops {
	struct configfs_attribute **tfc_tpg_nacl_param_attrs;

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

int target_register_template(const struct target_core_fabric_ops *fo);