Skip to content
Snippets Groups Projects
Commit e82dabd8 authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Kevin Wolf
Browse files

ide: convert ide_sector_write() to asynchronous I/O


The IDE PIO write sector code path uses bdrv_write() and hence can make
the guest unresponsive while the I/O request is in progress.  This patch
converts ide_sector_write() to use bdrv_aio_writev() by using the
BUSY_STAT bit to tell the guest that the request is in progress.

Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Tested-by: default avatarRichard Davies <richard@arachsys.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent bef0fd59
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment