mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 11:36:35 +00:00
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>
This commit is contained in:
parent
d120c7083f
commit
88cf107325
1 changed files with 2 additions and 1 deletions
|
@ -1098,7 +1098,8 @@ static unsigned int tcmu_handle_completions(struct tcmu_dev *udev)
|
||||||
|
|
||||||
cmd = idr_remove(&udev->commands, entry->hdr.cmd_id);
|
cmd = idr_remove(&udev->commands, entry->hdr.cmd_id);
|
||||||
if (!cmd) {
|
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);
|
set_bit(TCMU_DEV_BIT_BROKEN, &udev->flags);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue