Commit cbaac68
committed
scsi: sd: Do not attempt to configure discard unless LBPME is set
Commit f874d72 ("scsi: sd: Keep the discard mode stable") attempted
to address an issue where one mode of discard operation got configured
prior to the device completing full discovery. Unfortunately this
change assumed discard was always enabled on the device.
Do not attempt to configure discard unless LBPME is enabled.
Link: https://lore.kernel.org/r/[email protected]
Fixes: f874d72 ("scsi: sd: Keep the discard mode stable")
Reported-by: Chris Bainbridge <[email protected]>
Tested-by: Chris Bainbridge <[email protected]>
Tested-by: Shin'ichiro Kawasaki <[email protected]>
Tested-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent cd612b5 commit cbaac68
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3308 | 3308 | | |
3309 | 3309 | | |
3310 | 3310 | | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
3311 | 3314 | | |
3312 | 3315 | | |
3313 | 3316 | | |
| |||
0 commit comments