<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/nvme/target/io-cmd-bdev.c, branch linux-5.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-02-01T17:18:51Z</updated>
<entry>
<title>nvmet: propagate npwg topology</title>
<updated>2025-02-01T17:18:51Z</updated>
<author>
<name>Luis Chamberlain</name>
</author>
<published>2024-12-18T02:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb6114c857aa68bd8334273eb13db29ff1afe58d'/>
<id>urn:sha1:fb6114c857aa68bd8334273eb13db29ff1afe58d</id>
<content type='text'>
[ Upstream commit b579d6fdc3a9149bb4d2b3133cc0767130ed13e6 ]

Ensure we propagate npwg to the target as well instead
of assuming its the same logical blocks per physical block.

This ensures devices with large IUs information properly
propagated on the target.

Signed-off-by: Luis Chamberlain &lt;mcgrof@kernel.org&gt;
Reviewed-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Signed-off-by: Keith Busch &lt;kbusch@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>nvmet: change ppl to lpp</title>
<updated>2019-09-23T20:59:49Z</updated>
<author>
<name>John Pittman</name>
</author>
<published>2019-09-17T18:52:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ec64895b05269c1814ea5befcadcd1184a12915'/>
<id>urn:sha1:0ec64895b05269c1814ea5befcadcd1184a12915</id>
<content type='text'>
In nvmet_bdev_set_limits() the number of logical blocks per
physical block is calculated, but the opposite is mentioned in
the associated comment and reflected in the variable name. Correct
the comment and adjust the variable name to reflect the calculation
done.

Signed-off-by: John Pittman &lt;jpittman@redhat.com&gt;
Reviewed-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Reviewed-by: Chaitanya Kulkarni &lt;chaitanya.kulkarni@wdc.com&gt;
Signed-off-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
</content>
</entry>
<entry>
<title>nvmet: export I/O characteristics attributes in Identify</title>
<updated>2019-07-09T21:15:37Z</updated>
<author>
<name>Bart Van Assche</name>
</author>
<published>2019-06-28T16:53:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d05a96e298aadb36e3ec971fab8d416e6fb7331'/>
<id>urn:sha1:9d05a96e298aadb36e3ec971fab8d416e6fb7331</id>
<content type='text'>
Make the NVMe NAWUN, NAWUPF, NACWU, NPWG, NPWA, NPDG and NOWS attributes
available to initator systems for the block backend.

Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Reviewed-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Reviewed-by: Hannes Reinecke &lt;hare@suse.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>nvmet: fix data_len to 0 for bdev-backed write_zeroes</title>
<updated>2019-06-04T16:29:31Z</updated>
<author>
<name>Minwoo Im</name>
</author>
<published>2019-06-02T03:43:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3562f5d9f21e7779ae442a45197fed6cb247fd22'/>
<id>urn:sha1:3562f5d9f21e7779ae442a45197fed6cb247fd22</id>
<content type='text'>
The WRITE ZEROES command has no data transfer so that we need to
initialize the struct (nvmet_req *req)-&gt;data_len to 0x0.  While
(nvmet_req *req)-&gt;transfer_len is initialized in nvmet_req_init(),
data_len will be initialized by nowhere which might cause the failure
with status code NVME_SC_SGL_INVALID_DATA | NVME_SC_DNR randomly.  It's
because nvmet_req_execute() checks like:

	if (unlikely(req-&gt;data_len != req-&gt;transfer_len)) {
		req-&gt;error_loc = offsetof(struct nvme_common_command, dptr);
		nvmet_req_complete(req, NVME_SC_SGL_INVALID_DATA | NVME_SC_DNR);
	} else
		req-&gt;execute(req);

This patch fixes req-&gt;data_len not to be a randomly assigned by
initializing it to 0x0 when preparing the command in
nvmet_bdev_parse_io_cmd().

nvmet_file_parse_io_cmd() which is for file-backed I/O has already
initialized the data_len field to 0x0, though.

Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Cc: Chaitanya Kulkarni &lt;Chaitanya.Kulkarni@wdc.com&gt;
Signed-off-by: Minwoo Im &lt;minwoo.im.dev@gmail.com&gt;
Reviewed-by: Chaitanya Kulkarni &lt;chaitanya.kulkarni@wdc.com&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
</content>
</entry>
<entry>
<title>nvmet: avoid double errno conversions</title>
<updated>2019-04-05T06:07:56Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2019-03-12T17:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cfe03c2ec46200dfefa5167e6a2bb50c0426c5f4'/>
<id>urn:sha1:cfe03c2ec46200dfefa5167e6a2bb50c0426c5f4</id>
<content type='text'>
Use errno_to_nvme_status to convert from a negative errno to a
nvme status field instead of going through a blk_status_t.

Also remove the pointless status variable in
nvmet_bdev_execute_write_zeroes.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Reviewed-by: Chaitanya Kulkarni &lt;chaitanya.kulkarni@wdc.com&gt;
</content>
</entry>
<entry>
<title>nvmet: ignore EOPNOTSUPP for discard</title>
<updated>2019-03-13T18:57:34Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2019-03-13T17:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=005c674f705ee308e23b8e4e7047419d12122fde'/>
<id>urn:sha1:005c674f705ee308e23b8e4e7047419d12122fde</id>
<content type='text'>
NVMe DSM is a pure hint, so if the underlying device / file system
does not support discard-like operations we should not fail the
operation but rather return success.

Fixes: 3b031d15995f ("nvmet: add error log support for bdev backend")
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed by: Chaitanya Kulkarni &lt;chaitanya.kulkarni@wdc.com&gt;
Tested-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>nvmet: convert to SPDX identifiers</title>
<updated>2019-02-20T14:22:42Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2019-02-18T10:36:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77141dc6ceffdbf4dd3470911c838309e23cd55c'/>
<id>urn:sha1:77141dc6ceffdbf4dd3470911c838309e23cd55c</id>
<content type='text'>
Update license to use SPDX-License-Identifier instead of verbose license
text.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
</content>
</entry>
<entry>
<title>nvmet: add error log support for bdev backend</title>
<updated>2018-12-13T08:59:05Z</updated>
<author>
<name>Chaitanya Kulkarni</name>
</author>
<published>2018-12-12T23:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b031d15995f3e4c43e38159072f07efe3fa35d9'/>
<id>urn:sha1:3b031d15995f3e4c43e38159072f07efe3fa35d9</id>
<content type='text'>
This patch adds the support for the block device backend to populate the
error log entries. Here we map the blk_status_t to the NVMe status.

Signed-off-by: Chaitanya Kulkarni &lt;chaitanya.kulkarni@wdc.com&gt;
Reviewed-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>nvmet: remove unused variable</title>
<updated>2018-12-13T08:59:00Z</updated>
<author>
<name>Sagi Grimberg</name>
</author>
<published>2018-12-13T07:01:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16d3a280d4d73eae786ebf2576cd597a031bc9df'/>
<id>urn:sha1:16d3a280d4d73eae786ebf2576cd597a031bc9df</id>
<content type='text'>
Signed-off-by: Sagi Grimberg &lt;sagi@grimberg.me&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>nvme: remove opportunistic polling from bdev target</title>
<updated>2018-11-26T15:25:48Z</updated>
<author>
<name>Jens Axboe</name>
</author>
<published>2018-11-19T15:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7d943910719b44738e86f91a26a64e3b61ae419'/>
<id>urn:sha1:e7d943910719b44738e86f91a26a64e3b61ae419</id>
<content type='text'>
It doesn't set HIPRI on the bio, so polling for it is pretty silly.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
