mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Merge r7345 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7606 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6758,6 +6758,14 @@ int scst_cmp_wr_local(struct scst_cmd *cmd)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
if (cmd->sess->sess_mq) {
|
||||
PRINT_WARNING_ONCE("MQ session (%p) from initiator %s (tgt %s), "
|
||||
"COMPARE AND WRITE not supported", cmd->sess,
|
||||
cmd->sess->initiator_name, cmd->sess->tgt->tgt_name);
|
||||
scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_invalid_opcode));
|
||||
goto out_done;
|
||||
}
|
||||
|
||||
/* COMPARE AND WRITE is SBC only command */
|
||||
EXTRACHECKS_BUG_ON(cmd->dev->type != TYPE_DISK);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user