Added generic asynchronous operations code.
Removed data_in_len and data_out_len from ata_command structure; the lengths are implied by the sector count and the presence of the data_in or data_out pointers. Changed AoE code to use subcommands by default, and made aoe_issue() nonblocking (with completion via async_wait()).
This commit is contained in:
@@ -37,7 +37,8 @@ static int aoe_command ( struct ata_device *ata,
|
||||
struct aoe_device *aoedev
|
||||
= container_of ( ata, struct aoe_device, ata );
|
||||
|
||||
return aoe_issue_split ( &aoedev->aoe, command );
|
||||
aoe_issue ( &aoedev->aoe, command );
|
||||
return async_wait ( &aoedev->aoe.aop );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user