+1
−1
+37
−21
+1
−1
+2
−1
+1
−1
Loading
After commit 4e5cc99e ("blk-mq: manage hctx map via xarray"), we use an xarray instead of array to store hctx, but in poll mode, each time in blk_mq_poll, we need use xa_load to find corresponding hctx, this introduce some costs. In my test, xa_load may cost 3.8% cpu. This patch revert previous change, eliminates the overhead of xa_load and can result in a 3% performance improvement. Signed-off-by:Fengnan Chang <changfengnan@bytedance.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>