]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] zfcp: Add qtcb dump to hba debug trace
authorMartin Peschke <mp3@de.ibm.com>
Thu, 27 Mar 2008 13:21:58 +0000 (14:21 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:19:03 +0000 (12:19 -0500)
commit6cdf0e081b3bbc185910e16374750d8ab3c02515
tree76702c9d4714e57f2ac0cc52e3515cb6efa6964e
parent5a0683a0f64ede4ae752667c07bbb05546f2d3bf
[SCSI] zfcp: Add qtcb dump to hba debug trace

This patch adds per request hardware debugging data to the trace
record which is written per request. It's a replacement for some sad
kernel message based debugging code. Considering the amount of trace
data, printk() is not suitable for this stuff. Writing binary traces
is more efficient. In addition we got all information in one place.

The QTCB trace data is only dumped for requests other than SCSI
requests.  Otherwise we would flood the trace ring buffer. We are
mostly interested in non-SCSI, recovery related requests here anyway.

This patch also works around a known hardware bug. It truncates QTCB
traces so that we do not save unused areas of the hardware trace.

Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_dbf.c