Commit 711201a
scsi: mpi3mr: Fix corrupt config pages PHY state is switched in sysfs
The driver, through the SAS transport, exposes a sysfs interface to
enable/disable PHYs in a controller/expander setup. When multiple PHYs
are disabled and enabled in rapid succession, the persistent and current
config pages related to SAS IO unit/SAS Expander pages could get
corrupted.
Use separate memory for each config request.
Signed-off-by: Prayas Patel <prayas.patel@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20241110194405.10108-3-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 367ac16 commit 711201a
2 files changed
Lines changed: 13 additions & 77 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
| |||
1133 | 1131 | | |
1134 | 1132 | | |
1135 | 1133 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | 1134 | | |
1140 | 1135 | | |
1141 | 1136 | | |
| |||
1332 | 1327 | | |
1333 | 1328 | | |
1334 | 1329 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | 1330 | | |
1340 | 1331 | | |
1341 | 1332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4186 | 4186 | | |
4187 | 4187 | | |
4188 | 4188 | | |
4189 | | - | |
4190 | | - | |
4191 | | - | |
4192 | | - | |
4193 | | - | |
4194 | | - | |
4195 | | - | |
4196 | | - | |
4197 | | - | |
4198 | | - | |
4199 | | - | |
4200 | 4189 | | |
4201 | 4190 | | |
4202 | 4191 | | |
| |||
4768 | 4757 | | |
4769 | 4758 | | |
4770 | 4759 | | |
4771 | | - | |
4772 | | - | |
4773 | | - | |
4774 | | - | |
4775 | | - | |
| 4760 | + | |
4776 | 4761 | | |
4777 | 4762 | | |
4778 | 4763 | | |
| |||
5392 | 5377 | | |
5393 | 5378 | | |
5394 | 5379 | | |
5395 | | - | |
5396 | | - | |
5397 | | - | |
5398 | | - | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | | - | |
5403 | | - | |
5404 | | - | |
5405 | | - | |
5406 | | - | |
5407 | | - | |
5408 | | - | |
5409 | | - | |
5410 | | - | |
5411 | | - | |
5412 | | - | |
5413 | | - | |
5414 | | - | |
5415 | | - | |
5416 | | - | |
5417 | | - | |
5418 | | - | |
5419 | | - | |
5420 | | - | |
5421 | | - | |
5422 | | - | |
5423 | | - | |
5424 | | - | |
5425 | | - | |
5426 | | - | |
5427 | | - | |
5428 | | - | |
5429 | | - | |
5430 | | - | |
5431 | | - | |
5432 | | - | |
5433 | | - | |
5434 | | - | |
5435 | | - | |
5436 | | - | |
5437 | | - | |
5438 | | - | |
5439 | | - | |
5440 | | - | |
5441 | | - | |
5442 | | - | |
5443 | | - | |
5444 | 5380 | | |
5445 | 5381 | | |
5446 | 5382 | | |
| |||
5596 | 5532 | | |
5597 | 5533 | | |
5598 | 5534 | | |
5599 | | - | |
5600 | | - | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
5601 | 5541 | | |
5602 | 5542 | | |
5603 | 5543 | | |
| |||
5626 | 5566 | | |
5627 | 5567 | | |
5628 | 5568 | | |
5629 | | - | |
| 5569 | + | |
| 5570 | + | |
| 5571 | + | |
| 5572 | + | |
| 5573 | + | |
| 5574 | + | |
5630 | 5575 | | |
5631 | 5576 | | |
5632 | 5577 | | |
| |||
0 commit comments