ahci: factor ncq_finish out of ncq_cb
commit54f3223730736fca1e6e89bb7f99c4f8432fdabb
authorJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:04 +0000 (4 02:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:04 +0000 (4 02:06 -0400)
tree50ee5219067196a45399ba138d9c2389d2113d72
parent631ddc22cbb401f2777dc8b117196f0988df4eea
ahci: factor ncq_finish out of ncq_cb

When we add werror=stop or rerror=stop support to NCQ,
we'll want to take a codepath where we don't actually
complete the command, so factor that out into a new routine.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435767578-32743-6-git-send-email-jsnow@redhat.com
hw/ide/ahci.c