mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Possibility to trace reservation conflicts added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3386 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -796,6 +796,13 @@ int scst_set_cmd_error_status(struct scst_cmd *cmd, int status)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
if (status == SAM_STAT_RESERVATION_CONFLICT) {
|
||||
TRACE(TRACE_SCSI|TRACE_MINOR, "Reservation conflict (dev %s, "
|
||||
"initiator %s, tgt_id %d)",
|
||||
cmd->dev ? cmd->dev->virt_name : NULL,
|
||||
cmd->sess->initiator_name, cmd->tgt->rel_tgt_id);
|
||||
}
|
||||
|
||||
if (cmd->status != 0) {
|
||||
TRACE_MGMT_DBG("cmd %p already has status %x set", cmd,
|
||||
cmd->status);
|
||||
|
||||
Reference in New Issue
Block a user