]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix interpretation of DMRSL
authorTom Yan <tom.ty89@gmail.com>
Fri, 29 Apr 2022 04:52:43 +0000 (12:52 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 May 2022 06:06:54 +0000 (08:06 +0200)
commit4413a2626bbb2b3826c151b3b6cc04b9ba699e7a
tree25671ba61746627d769a990b2b606f84346a815f
parent91f0b76f123d026842d4f5ec3f95afde0c455e0c
nvme: fix interpretation of DMRSL

DMRSLl is in the unit of logical blocks, while max_discard_sectors is
in the unit of "linux sector".

Signed-off-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h