On 6/27/21 3:37 PM, Hao Xu wrote: > We currently spin in iopoll() when requests to be iopolled are for > same file(device), while one device may have multiple hardware queues. > given an example: > > hw_queue_0 | hw_queue_1 > req(30us) req(10us) > > If we first spin on iopolling for the hw_queue_0. the avg latency would > be (30us + 30us) / 2 = 30us. While if we do round robin, the avg > latency would be (30us + 10us) / 2 = 20us since we reap the request in > hw_queue_1 in time. So it's better to do spinning only when requests > are in same hardware queue. Applied, thanks. -- Jens Axboe