From 99ef98d0bffdb9b8c67ad3892d533d33221529f0 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 31 May 2006 18:57:11 +0000 Subject: ATA devices are now asynchronous. The ATA layer itself now performs the async_wait(), though we may wish to move this higher up the stack, and consider making the block device model asynchronous. (There is only a marginal cost for synchronous devices, since they can simply call async_done() before returning; async_wait() will work seamlessly in this situation). --- src/drivers/block/ata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/block') diff --git a/src/drivers/block/ata.c b/src/drivers/block/ata.c index e0df3673..d2d77aea 100644 --- a/src/drivers/block/ata.c +++ b/src/drivers/block/ata.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -48,7 +49,7 @@ ata_command ( struct ata_device *ata, struct ata_command *command ) { ( unsigned long long ) command->cb.lba.native, command->cb.count.native ); - return ata->command ( ata, command ); + return async_wait ( ata->command ( ata, command ) ); } /** -- cgit v1.2.3-55-g7522