<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/md/dm-stats.c, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-06-06T06:19:46Z</updated>
<entry>
<title>dm stats: add cond_resched when looping over entries</title>
<updated>2022-06-06T06:19:46Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2022-04-24T20:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6adce527fe86f0156ea853742c951c01b1f0d6fc'/>
<id>urn:sha1:6adce527fe86f0156ea853742c951c01b1f0d6fc</id>
<content type='text'>
commit bfe2b0146c4d0230b68f5c71a64380ff8d361f8b upstream.

dm-stats can be used with a very large number of entries (it is only
limited by 1/4 of total system memory), so add rescheduling points to
the loops that iterate over the entries.

Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dm stats: fix a leaked s-&gt;histogram_boundaries array</title>
<updated>2017-03-12T05:41:44Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2017-02-15T17:06:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bad6c16b81b68d81e95ada246649dacc3cdd5e1d'/>
<id>urn:sha1:bad6c16b81b68d81e95ada246649dacc3cdd5e1d</id>
<content type='text'>
commit 6085831883c25860264721df15f05bbded45e2a2 upstream.

Fixes: dfcfac3e4cd9 ("dm stats: collect and report histogram of IO latencies")
Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>dm: move request-based code out to dm-rq.[hc]</title>
<updated>2016-06-10T19:15:44Z</updated>
<author>
<name>Mike Snitzer</name>
</author>
<published>2016-05-12T20:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cc96131afce3eaae7c13dff41c6ba771cf10e96'/>
<id>urn:sha1:4cc96131afce3eaae7c13dff41c6ba771cf10e96</id>
<content type='text'>
Add some seperation between bio-based and request-based DM core code.

'struct mapped_device' and other DM core only structures and functions
have been moved to dm-core.h and all relevant DM core .c files have been
updated to include dm-core.h rather than dm.h

DM targets should _never_ include dm-core.h!

[block core merge conflict resolution from Stephen Rothwell]
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
</content>
</entry>
<entry>
<title>dm: pass dm stats data dir instead of bi_rw</title>
<updated>2016-06-07T19:41:38Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2016-06-05T19:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=528ec5abe6808c367b13f51945829eba24b1fc17'/>
<id>urn:sha1:528ec5abe6808c367b13f51945829eba24b1fc17</id>
<content type='text'>
It looks like dm stats cares about the data direction
(READ vs WRITE) and does not need the bio/request flags.
Commands like REQ_FLUSH, REQ_DISCARD and REQ_WRITE_SAME
are currently always set with REQ_WRITE, so the extra check for
REQ_DISCARD in dm_stats_account_io is not needed.

This patch has it use the bio and request data_dir helpers
instead of accessing the bi_rw/cmd_flags directly. This makes
the next patches that remove the operation from the cmd_flags
and bi_rw easier, because we will no longer have the REQ_WRITE
bit set for operations like discards.

Signed-off-by: Mike Christie &lt;mchristi@redhat.com&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Hannes Reinecke &lt;hare@suse.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@fb.com&gt;
</content>
</entry>
<entry>
<title>dm stats: report precise_timestamps and histogram in @stats_list output</title>
<updated>2015-08-18T21:20:03Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2015-08-18T20:26:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd49784fd1e8f42c7600fbfa206361324857f373'/>
<id>urn:sha1:bd49784fd1e8f42c7600fbfa206361324857f373</id>
<content type='text'>
If the user selected the precise_timestamps or histogram options, report
it in the @stats_list message output.

If the user didn't select these options, no extra tokens are reported,
thus it is backward compatible with old software that doesn't know about
precise timestamps and histogram.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
Cc: stable@vger.kernel.org # 4.2
</content>
</entry>
<entry>
<title>dm stats: add support for request-based DM devices</title>
<updated>2015-06-17T16:40:41Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2015-06-09T21:22:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e262f34741522e0d821642e5449c6eeb512723fc'/>
<id>urn:sha1:e262f34741522e0d821642e5449c6eeb512723fc</id>
<content type='text'>
This makes it possible to use dm stats with DM multipath.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm stats: collect and report histogram of IO latencies</title>
<updated>2015-06-17T16:40:40Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2015-06-09T21:22:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfcfac3e4cd94abef779297fab6adfd2dbcf52fa'/>
<id>urn:sha1:dfcfac3e4cd94abef779297fab6adfd2dbcf52fa</id>
<content type='text'>
Add an option to dm statistics to collect and report a histogram of
IO latencies.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm stats: support precise timestamps</title>
<updated>2015-06-17T16:40:40Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2015-06-09T21:21:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c96aec344de0de857ef3d7fba53992c7ba311e1e'/>
<id>urn:sha1:c96aec344de0de857ef3d7fba53992c7ba311e1e</id>
<content type='text'>
Make it possible to use precise timestamps with nanosecond granularity
in dm statistics.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
<entry>
<title>dm stats: fix divide by zero if 'number_of_areas' arg is zero</title>
<updated>2015-06-17T16:40:39Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2015-06-05T13:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd4c1b7d0c95be1c9245118a3accc41a16f1db67'/>
<id>urn:sha1:dd4c1b7d0c95be1c9245118a3accc41a16f1db67</id>
<content type='text'>
If the number_of_areas argument was zero the kernel would crash on
div-by-zero.  Add better input validation.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
Cc: stable@vger.kernel.org # v3.12+
</content>
</entry>
<entry>
<title>dm stats: Use kvfree() in dm_kvfree()</title>
<updated>2015-06-11T21:13:02Z</updated>
<author>
<name>Pekka Enberg</name>
</author>
<published>2015-05-15T18:35:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f24b79b52730e15d9e3386ce27da2110eb4597d'/>
<id>urn:sha1:0f24b79b52730e15d9e3386ce27da2110eb4597d</id>
<content type='text'>
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
Signed-off-by: Mike Snitzer &lt;snitzer@redhat.com&gt;
</content>
</entry>
</feed>
