Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Ming Lei
On Thu, May 24, 2018 at 1:40 AM, Omar Sandoval wrote: > On Sat, May 19, 2018 at 03:44:06PM +0800, Ming Lei wrote: >> When the allocation process is scheduled back and the mapped hw queue is >> changed, do one extra wake up on orignal queue for compensating wake up >> miss, so

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Omar Sandoval
On Thu, May 24, 2018 at 06:09:51AM +0800, Ming Lei wrote: > On Thu, May 24, 2018 at 1:48 AM, Omar Sandoval wrote: > > On Wed, May 23, 2018 at 05:32:31PM +0800, Ming Lei wrote: > >> On Tue, May 22, 2018 at 09:59:17PM -0600, Jens Axboe wrote: > >> > On 5/19/18 1:44 AM, Ming Lei

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Jens Axboe
On 5/23/18 4:09 PM, Ming Lei wrote: > On Thu, May 24, 2018 at 1:48 AM, Omar Sandoval wrote: >> On Wed, May 23, 2018 at 05:32:31PM +0800, Ming Lei wrote: >>> On Tue, May 22, 2018 at 09:59:17PM -0600, Jens Axboe wrote: On 5/19/18 1:44 AM, Ming Lei wrote: > When the

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Ming Lei
On Thu, May 24, 2018 at 1:48 AM, Omar Sandoval wrote: > On Wed, May 23, 2018 at 05:32:31PM +0800, Ming Lei wrote: >> On Tue, May 22, 2018 at 09:59:17PM -0600, Jens Axboe wrote: >> > On 5/19/18 1:44 AM, Ming Lei wrote: >> > > When the allocation process is scheduled back and

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Omar Sandoval
On Wed, May 23, 2018 at 05:32:31PM +0800, Ming Lei wrote: > On Tue, May 22, 2018 at 09:59:17PM -0600, Jens Axboe wrote: > > On 5/19/18 1:44 AM, Ming Lei wrote: > > > When the allocation process is scheduled back and the mapped hw queue is > > > changed, do one extra wake up on orignal queue for

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Omar Sandoval
On Sat, May 19, 2018 at 03:44:06PM +0800, Ming Lei wrote: > When the allocation process is scheduled back and the mapped hw queue is > changed, do one extra wake up on orignal queue for compensating wake up > miss, so other allocations on the orignal queue won't be starved. > > This patch fixes

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-23 Thread Ming Lei
On Tue, May 22, 2018 at 09:59:17PM -0600, Jens Axboe wrote: > On 5/19/18 1:44 AM, Ming Lei wrote: > > When the allocation process is scheduled back and the mapped hw queue is > > changed, do one extra wake up on orignal queue for compensating wake up > > miss, so other allocations on the orignal

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-22 Thread Jens Axboe
On 5/19/18 1:44 AM, Ming Lei wrote: > When the allocation process is scheduled back and the mapped hw queue is > changed, do one extra wake up on orignal queue for compensating wake up > miss, so other allocations on the orignal queue won't be starved. > > This patch fixes one request allocation

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-22 Thread Jens Axboe
On 5/22/18 6:22 PM, Ming Lei wrote: > On Tue, May 22, 2018 at 02:20:37PM -0600, Jens Axboe wrote: >> On 5/19/18 1:44 AM, Ming Lei wrote: >>> When the allocation process is scheduled back and the mapped hw queue is >>> changed, do one extra wake up on orignal queue for compensating wake up >>>

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-22 Thread Ming Lei
On Tue, May 22, 2018 at 02:20:37PM -0600, Jens Axboe wrote: > On 5/19/18 1:44 AM, Ming Lei wrote: > > When the allocation process is scheduled back and the mapped hw queue is > > changed, do one extra wake up on orignal queue for compensating wake up > > miss, so other allocations on the orignal

Re: [PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-22 Thread Jens Axboe
On 5/19/18 1:44 AM, Ming Lei wrote: > When the allocation process is scheduled back and the mapped hw queue is > changed, do one extra wake up on orignal queue for compensating wake up > miss, so other allocations on the orignal queue won't be starved. > > This patch fixes one request allocation

[PATCH V2] blk-mq: avoid to starve tag allocation after allocation process migrates

2018-05-19 Thread Ming Lei
When the allocation process is scheduled back and the mapped hw queue is changed, do one extra wake up on orignal queue for compensating wake up miss, so other allocations on the orignal queue won't be starved. This patch fixes one request allocation hang issue, which can be triggered easily in