summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_user.c
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-12-19 04:03:56 -0600
committerNicholas Bellinger <nab@linux-iscsi.org>2018-01-12 15:07:30 -0800
commit88cf107325fc7e37925de1960bd34ab917924362 (patch)
treeaadbc378f9f7dfa4d356ee185db4e9a885251753 /drivers/target/target_core_user.c
parentd120c7083f49d177e6765afad543faa0f243590e (diff)
downloadtalos-obmc-linux-88cf107325fc7e37925de1960bd34ab917924362.tar.gz
talos-obmc-linux-88cf107325fc7e37925de1960bd34ab917924362.zip
target_core_user: add cmd id to broken ring message
Log cmd id that was not found in the tcmu_handle_completions lookup failure path. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_user.c')
-rw-r--r--drivers/target/target_core_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index a746fedbb486..1238480cd4c4 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -1098,7 +1098,8 @@ static unsigned int tcmu_handle_completions(struct tcmu_dev *udev)
cmd = idr_remove(&udev->commands, entry->hdr.cmd_id);
if (!cmd) {
- pr_err("cmd_id not found, ring is broken\n");
+ pr_err("cmd_id %u not found, ring is broken\n",
+ entry->hdr.cmd_id);
set_bit(TCMU_DEV_BIT_BROKEN, &udev->flags);
break;
}
OpenPOWER on IntegriCloud