ide: restart atapi dma by re-evaluating command packet
commit9a41826f3843bf11bf8f52f176071f8c1fb0aa7e
authorPavel Butsykin <pbutsykin@virtuozzo.com>
Tue, 12 Apr 2016 20:47:52 +0000 (12 16:47 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 12 Apr 2016 20:47:52 +0000 (12 16:47 -0400)
treee6412f738c4297dacc560dd55046f2485ae6b1a8
parent218fd37c68e450dffe37832e82a1f0a6592e7169
ide: restart atapi dma by re-evaluating command packet

ide_atapi_dma_restart() used to just complete the DMA with an error,
under the assumption that there isn't enough information to restart it.

However, as the contents of the ->io_buffer is preserved, it looks safe to
just re-evaluate it and dispatch the ATAPI command again.

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1459924806-306-3-git-send-email-den@openvz.org
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/atapi.c