On 7/12/19 9:58 PM, Zhengyuan Liu wrote: > sq->cached_sq_head and cq->cached_cq_tail are both unsigned int. > if cached_sq_head gets overflowed before cached_cq_tail, then we > may miss a barrier req. As cached_cq_tail moved always following > cached_sq_head, the NQ should be enough. This (and the previous patch) looks fine to me, just wondering if you had a test case showing this issue? -- Jens Axboe