target_core_user: add cmd id to broken ring message
Subsystems (2)
RFC PATCH 2/3 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 <[email protected]>
--- drivers/target/target_core_user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/target/target_core_user.c +2 -1
@@ -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 ; }
Signature · 1 line
2.7.2