target: Fix a comment in emulate_evpd_86
Subsystems (2)
PATCH RESEND 1/1 target: Fix a comment in emulate_evpd_86
Fix comment to make it clear that check_dev_wce can return true if emulation is in use, but also if it's *not* emulated but the underlying device supports it.
Reviewed-by Chris Leech <[email protected]>
Signed-off-by Andy Grover <[email protected]>
--- drivers/target/target_core_spc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_spc.c +1 -1
@@ -489,7 +489,7 @@ spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf)/* Set HEADSUP, ORDSUP, SIMPSUP */ buf[5 ] =0x07 ; -/* If WriteCache emulation is enabled, set V_SUP */ +/* If WriteCache supported (or emulated), set V_SUP */ if (spc_check_dev_wce (dev)) buf[6 ] =0x01 ;/* If an LBA map is present set R_SUP */
Signature · 1 line
1.9.3
Quoted 6 lines · Andy Grover
Fix comment to make it clear that
check_dev_wcecan return true if emulation is in use, but also if it's *not* emulated but the underlying device supports it.Reviewed-by Chris Leech <[email protected]>Signed-off-by Andy Grover <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>