Revert "ide/ahci: Check for -ECANCELED in aio callbacks"
commit8ec41c4265714255d5a138f8b538faf3583dcff6
authorJohn Snow <jsnow@redhat.com>
Mon, 29 Jul 2019 22:36:05 +0000 (29 18:36 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 16 Aug 2019 23:14:04 +0000 (16 19:14 -0400)
treecd6dbb89387cfe91c99b4dfa4fdb52ff27ea7089
parent539343c0a47e19d5dd64d846d64d084d9793681f
Revert "ide/ahci: Check for -ECANCELED in aio callbacks"

This reverts commit 0d910cfeaf2076b116b4517166d5deb0fea76394.

It's not correct to just ignore an error code in a callback; we need to
handle that error and possible report failure to the guest so that they
don't wait indefinitely for an operation that will now never finish.

This ought to help cases reported by Nutanix where iSCSI returns a
legitimate -ECANCELED for certain operations which should be propagated
normally.

Reported-by: Shaju Abraham <shaju.abraham@nutanix.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20190729223605.7163-1-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/ahci.c
hw/ide/core.c