]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
IB/srpt: Make a debug statement in srpt_abort_cmd() more informative
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 23 May 2017 23:48:35 +0000 (16:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 05:58:01 +0000 (22:58 -0700)
Do not only report the state of the I/O context before srpt_abort_cmd()
was called but also the new state assigned by srpt_abort_cmd()

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andy Grover <agrover@redhat.com>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c

index 1ced0731c1400950f59e31b1638800afec92daad..402275be0931e1c3218a821a0633ec9f924e78b4 100644 (file)
@@ -1157,8 +1157,8 @@ static int srpt_abort_cmd(struct srpt_send_ioctx *ioctx)
        }
        spin_unlock_irqrestore(&ioctx->spinlock, flags);
 
-       pr_debug("Aborting cmd with state %d and tag %lld\n", state,
-                ioctx->cmd.tag);
+       pr_debug("Aborting cmd with state %d -> %d and tag %lld\n", state,
+                ioctx->state, ioctx->cmd.tag);
 
        switch (state) {
        case SRPT_STATE_NEW: