diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-05-20 09:44:39 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-06-10 07:50:17 -0400 |
commit | 437681800bdaa9feb58cf943dfbbd239c21d3705 (patch) | |
tree | ac6550df0e231f024d11123a9386d2c7b168503c /drivers/ata/pata_hpt3x3.c | |
parent | 31f80112cc7e7ea4c220d6f62b0a7052754befb3 (diff) |
[libata] get rid of ATA_MAX_QUEUE loop in ata_qc_complete_multiple() v2
We very rarely (if ever) complete more than one command in the
sactive mask at the time, even for extremely high IO rates. So
looping over the entire range of possible tags is pointless,
instead use __ffs() to just find the completed tags directly.
Updated to clear the tag from the done_mask instead of shifting
done_mask down as suggested by From: Tejun Heo <htejun@gmail.com>
Verified with a user space tester to produce the same results.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_hpt3x3.c')
0 files changed, 0 insertions, 0 deletions