Commit a2d5a00
scsi: smartpqi: Use is_kdump_kernel() to check for kdump
The smartpqi driver checks the reset_devices variable to determine
whether special adjustments need to be made for kdump. This has the
effect that after a regular kexec reboot, some driver parameters such as
max_transfer_size are much lower than usual. More importantly, kexec
reboot tests have revealed memory corruption caused by the driver log
being written to system memory after a kexec.
Fix this by testing is_kdump_kernel() rather than reset_devices where
appropriate.
Fixes: 058311b ("scsi: smartpqi: Add fw log to kdump")
Signed-off-by: Martin Wilck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Randy Wright <[email protected]>
Acked-by: Don Brace <[email protected]>
Tested-by: Don Brace <[email protected]>
Reviewed-by: Lee Duncan <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent f7b705c commit a2d5a00
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
5246 | 5247 | | |
5247 | 5248 | | |
5248 | 5249 | | |
5249 | | - | |
| 5250 | + | |
5250 | 5251 | | |
5251 | 5252 | | |
5252 | 5253 | | |
| |||
5275 | 5276 | | |
5276 | 5277 | | |
5277 | 5278 | | |
5278 | | - | |
| 5279 | + | |
5279 | 5280 | | |
5280 | 5281 | | |
5281 | 5282 | | |
| |||
8288 | 8289 | | |
8289 | 8290 | | |
8290 | 8291 | | |
8291 | | - | |
| 8292 | + | |
8292 | 8293 | | |
8293 | 8294 | | |
8294 | 8295 | | |
8295 | 8296 | | |
8296 | | - | |
| 8297 | + | |
8297 | 8298 | | |
8298 | 8299 | | |
8299 | 8300 | | |
| |||
8344 | 8345 | | |
8345 | 8346 | | |
8346 | 8347 | | |
8347 | | - | |
| 8348 | + | |
8348 | 8349 | | |
8349 | 8350 | | |
8350 | 8351 | | |
| |||
8480 | 8481 | | |
8481 | 8482 | | |
8482 | 8483 | | |
8483 | | - | |
| 8484 | + | |
8484 | 8485 | | |
8485 | 8486 | | |
8486 | 8487 | | |
| |||
0 commit comments