You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device can report discard support without setting the ONCS DSM bit.
When not set, the driver clears max_discard_size expecting it to be set
later. We don't know the size until we have the namespace format,
though, so setting it is deferred until configuring one, but the driver
was abandoning the discard settings due to that initial clearing.
Move the max_discard_size calculation above the check for a '0' discard
size.
Fixes: 1a86924 ("nvme: fix interpretation of DMRSL")
Reported-by: Laurence Oberman <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Tested-by: Laurence Oberman <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
0 commit comments