Re: scsi: Add diagnostic log for scsi device reset

From: James Bottomley
Date: Thu Jan 07 2021 - 11:50:22 EST


On Thu, 2021-01-07 at 19:43 +0800, lijinlin wrote:
[...]
> - SCSI_LOG_ERROR_RECOVERY(3,
> + if (bdr_scmd->request && bdr_scmd->request->rq_disk)
> sdev_printk(KERN_INFO, sdev,
> - "%s: Sending BDR\n", current-
> >comm));
> + "[%s] Sending device reset\n",
> + bdr_scmd->request->rq_disk-
> >disk_name);

Not everything is a SCSI disk. If we apply this patch, we lose traces
for any non-disk device that get reset ... for tapes this can be really
important to know.

James