]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: Fix nvmet_execute_write_zeroes sector count
authorRodrigo R. Galvao <rosattig@linux.vnet.ibm.com>
Thu, 12 Apr 2018 15:16:11 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
commit8ff30e8df9d6e9489995cf31e97d0def3f6edf4f
treef015c73f3222a87bebda4608b18be8fc09d8b159
parent062a317e4bb3aed29d97a3bc881acd911bd59518
nvmet: Fix nvmet_execute_write_zeroes sector count

We have to increment the number of logical blocks to a 1's based value
in the native format prior to converting to 512b units.

Signed-off-by: Rodrigo R. Galvao <rosattig@linux.vnet.ibm.com>
[changelog]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/io-cmd.c