<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/scsi_logging.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-10-07T19:01:01Z</updated>
<entry>
<title>scsi: core: Reduce memory required for SCSI logging</title>
<updated>2019-10-07T19:01:01Z</updated>
<author>
<name>Bart Van Assche</name>
</author>
<published>2019-08-01T22:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=764029c0aaa6c84fb2420cefb15eed7845b411fa'/>
<id>urn:sha1:764029c0aaa6c84fb2420cefb15eed7845b411fa</id>
<content type='text'>
[ Upstream commit dccc96abfb21dc19d69e707c38c8ba439bba7160 ]

The data structure used for log messages is so large that it can cause a
boot failure. Since allocations from that data structure can fail anyway,
use kmalloc() / kfree() instead of that data structure.

See also https://bugzilla.kernel.org/show_bug.cgi?id=204119.
See also commit ded85c193a39 ("scsi: Implement per-cpu logging buffer") # v4.0.

Reported-by: Jan Palus &lt;jpalus@fastmail.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Hannes Reinecke &lt;hare@suse.com&gt;
Cc: Johannes Thumshirn &lt;jthumshirn@suse.de&gt;
Cc: Ming Lei &lt;ming.lei@redhat.com&gt;
Cc: Jan Palus &lt;jpalus@fastmail.com&gt;
Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scsi_logging: return void for dev_printk() functions</title>
<updated>2015-02-04T16:00:24Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-02-04T07:11:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c4a6b1e42801343535ccab4c190019d9975cce8'/>
<id>urn:sha1:9c4a6b1e42801343535ccab4c190019d9975cce8</id>
<content type='text'>
dev_printk() is now a void function, so the related functions
scmd_printk() and sdev_prefix_printk() should be made void, too.

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>scsi: always use format argumets for dev_printk</title>
<updated>2015-01-20T18:43:22Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2015-01-18T15:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2fc583c4628bf782e62d0c66d57c5de040fac451'/>
<id>urn:sha1:2fc583c4628bf782e62d0c66d57c5de040fac451</id>
<content type='text'>
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
Reviewed-by: Ewan D. Milne &lt;emilne@redhat.com&gt;
Reviewed-by: Hannes Reinecke &lt;hare@suse.de&gt;
</content>
</entry>
<entry>
<title>scsi: use per-cpu buffer for formatting scsi_print_result()</title>
<updated>2015-01-09T14:44:31Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-01-08T06:43:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=026f8da8da4ce3423bf89e8e9091f55ae3863eda'/>
<id>urn:sha1:026f8da8da4ce3423bf89e8e9091f55ae3863eda</id>
<content type='text'>
Convert scsi_print_result() to use the per-cpu buffer for decoding the
command result and disposition.

Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: use per-cpu buffer for formatting sense</title>
<updated>2015-01-09T14:44:30Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-01-08T06:43:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2104551969e8011e72788dc5674609d437448cf6'/>
<id>urn:sha1:2104551969e8011e72788dc5674609d437448cf6</id>
<content type='text'>
Convert sense buffer logging to use the per-cpu buffer to avoid line
breakup.

Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: use external buffer for command logging</title>
<updated>2015-01-09T14:44:29Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-01-08T06:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e5ed2a5b3662c6f398023042c02aaa527099a3d'/>
<id>urn:sha1:9e5ed2a5b3662c6f398023042c02aaa527099a3d</id>
<content type='text'>
Use an external buffer for __scsi_print_command() and move command
logging over to use the per-cpu logging buffer.  With that we can
guarantee the command always will always be formatted in one line.
So we can even print out a variable length command correctly across
several lines. Finally rename __scsi_print_command() to
__scsi_format_comment() to better reflect the functionality.

Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: log request tag for scmd_printk()</title>
<updated>2015-01-09T14:44:28Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-01-08T06:43:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa66ab35f2b31e96f4b60e675b2d6ffc51d472eb'/>
<id>urn:sha1:aa66ab35f2b31e96f4b60e675b2d6ffc51d472eb</id>
<content type='text'>
The request tag provides a concise identification of a SCSI
command, so we should be printing that out for scmd_printk().

Suggested-by: Christoph Hellwig &lt;hch@lst.de&gt;
Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>scsi: Implement per-cpu logging buffer</title>
<updated>2015-01-09T14:44:28Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2015-01-08T06:43:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ded85c193a391a84076d5c6a7a5668fe164a490e'/>
<id>urn:sha1:ded85c193a391a84076d5c6a7a5668fe164a490e</id>
<content type='text'>
Implement a per-cpu buffer for formatting messages to avoid line breaks
up under high load.  This patch implements scmd_printk() and
sdev_prefix_printk() using the per-cpu buffer and makes sdev_printk() a
wrapper for sdev_prefix_printk().

Tested-by: Robert Elliott &lt;elliott@hp.com&gt;
Reviewed-by: Robert Elliott &lt;elliott@hp.com&gt;
Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
</feed>
