]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix sector units when going between formats
authorJeff Lien <jeff.lien@wdc.com>
Tue, 19 Dec 2017 19:24:15 +0000 (13:24 -0600)
committerChristoph Hellwig <hch@lst.de>
Fri, 29 Dec 2017 09:31:05 +0000 (10:31 +0100)
commit0e079326159aef99d3559d012b4f7b01c94ee98f
tree74fb334a13d4464cdb40a31f181220183b316bfd
parent12b078c65cba7af97b92e40c9732f77890e43fd5
nvme: fix sector units when going between formats

If you format a device with a 4k sector size back to 512 bytes, the queue
limit values for physical block size and minimum IO size were not getting
updated; only the logical block size was being updated.  This patch adds
code to update the physical block and IO minimum sizes.

Signed-off-by: Jeff Lien <jeff.lien@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c