mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
d3205ab75e
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:
|
||
---|---|---|
.. | ||
common | ||
host | ||
target | ||
Kconfig | ||
Makefile |