cfq-iosched: improve hw_tag detection
authorShaohua Li <shaohua.li@intel.com>
Tue, 27 Oct 2009 07:46:23 +0000 (08:46 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 Oct 2009 07:46:23 +0000 (08:46 +0100)
If active queue hasn't enough requests and idle window opens, cfq will not
dispatch sufficient requests to hardware. In such situation, current code
will zero hw_tag. But this is because cfq doesn't dispatch enough requests
instead of hardware queue doesn't work. Don't zero hw_tag in such case.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found