diff mbox series

scsi: target: enable READ CAPACITY for PR EARO

Message ID ad095388dbc550c5b199a1dfa71bcbfc575a7abe.1701272679.git.bcodding@redhat.com
State New
Headers show
Series scsi: target: enable READ CAPACITY for PR EARO | expand

Commit Message

Benjamin Coddington Nov. 29, 2023, 4:13 p.m. UTC
SBC-4, Table 13 allows READ CAPACITY for all PR types.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
---
 drivers/target/target_core_pr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen Dec. 14, 2023, 4:29 a.m. UTC | #1
On Wed, 29 Nov 2023 11:13:54 -0500, Benjamin Coddington wrote:

> SBC-4, Table 13 allows READ CAPACITY for all PR types.
> 
> 

Applied to 6.8/scsi-queue, thanks!

[1/1] scsi: target: enable READ CAPACITY for PR EARO
      https://git.kernel.org/mkp/scsi/c/28c58f8a0947
diff mbox series

Patch

diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
index 49d9167bb263..80b7d85030d0 100644
--- a/drivers/target/target_core_pr.c
+++ b/drivers/target/target_core_pr.c
@@ -470,6 +470,7 @@  static int core_scsi3_pr_seq_non_holder(struct se_cmd *cmd, u32 pr_reg_type,
 	case INQUIRY:
 	case LOG_SENSE:
 	case SERVICE_ACTION_IN_12:
+	case READ_CAPACITY:
 	case REPORT_LUNS:
 	case REQUEST_SENSE:
 	case PERSISTENT_RESERVE_IN: