Re: [PATCH] blk-mq: order getting budget and driver tag

2018-04-04 Thread Jens Axboe
On 4/4/18 10:35 AM, Ming Lei wrote: > This patch orders getting budget and driver tag by making sure to acquire > driver tag after budget is got, this way can help to avoid the following > race: > > 1) before dispatch request from scheduler queue, get one budget first, then > dequeue a request,

[PATCH] blk-mq: order getting budget and driver tag

2018-04-04 Thread Ming Lei
This patch orders getting budget and driver tag by making sure to acquire driver tag after budget is got, this way can help to avoid the following race: 1) before dispatch request from scheduler queue, get one budget first, then dequeue a request, call it request A. 2) in another IO path for