mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Mark ATA channel as idle on timeout in non-ATA_CAM mode.
This should fix possible duplicate request completion. Submitted by: mjacob
This commit is contained in:
parent
cd4d97b439
commit
22b9488310
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207221
@ -513,9 +513,9 @@ ata_timeout(struct ata_request *request)
|
||||
request->flags |= ATA_R_TIMEOUT;
|
||||
if (ch->dma.unload)
|
||||
ch->dma.unload(request);
|
||||
#ifdef ATA_CAM
|
||||
ch->running = NULL;
|
||||
ch->state = ATA_IDLE;
|
||||
#ifdef ATA_CAM
|
||||
ata_cam_end_transaction(ch->dev, request);
|
||||
#endif
|
||||
mtx_unlock(&ch->state_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user