Commit a169515
committed
ata: libata-scsi: Improve ata_scsi_handle_link_detach()
A struct ata_device flags should always be set and cleared with the
device port locked. Testing for a flag should thus also be done while
holding the device port lock. In accordance to this principle, modify
ata_scsi_handle_link_detach() to test and clear the ATA_DFLAG_DETACHED
flag while holding the device port lock.
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>1 parent c494708 commit a169515
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4605 | 4605 | | |
4606 | 4606 | | |
4607 | 4607 | | |
4608 | | - | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
4609 | 4611 | | |
| 4612 | + | |
4610 | 4613 | | |
4611 | | - | |
4612 | 4614 | | |
4613 | 4615 | | |
4614 | 4616 | | |
| |||
0 commit comments