On 12/17/18 9:15 PM, Ming Lei wrote: > The queue mapping of type poll only exists when set->map[HCTX_TYPE_POLL].nr_queues > is bigger than zero, so enhance the constraint by checking .nr_queues of type poll > before enabling IO poll. > > Otherwise IO race & timeout can be observed when running block/007. Looks good to me, but we might consider having a helper for this, since we have this check in 3 places now. But for now this is good, thanks Ming. -- Jens Axboe