MFC r207221:
Mark ATA channel as idle on timeout in non-ATA_CAM mode. This should fix possible duplicate request completion.
This commit is contained in:
parent
20151ecd2e
commit
dd6a149269
@ -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…
x
Reference in New Issue
Block a user