Re: [PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-23 Thread Jon Mason
On Mon, Aug 22, 2016 at 12:58 PM, Jiang, Dave wrote: > > On Mon, 2016-08-22 at 18:51 +0200, Nicholas Mc Guire wrote: >> schedule_timeout_* takes a timeout in jiffies but the code currently >> is >> passing in a constant which makes this timeout HZ dependent, so pass >> it >>

Re: [PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-23 Thread Jon Mason
On Mon, Aug 22, 2016 at 12:58 PM, Jiang, Dave wrote: > > On Mon, 2016-08-22 at 18:51 +0200, Nicholas Mc Guire wrote: >> schedule_timeout_* takes a timeout in jiffies but the code currently >> is >> passing in a constant which makes this timeout HZ dependent, so pass >> it >> through

Re: [PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-22 Thread Jiang, Dave
On Mon, 2016-08-22 at 18:51 +0200, Nicholas Mc Guire wrote: > schedule_timeout_* takes a timeout in jiffies but the code currently > is > passing in a constant which makes this timeout HZ dependent, so pass > it > through msecs_to_jiffies() to fix this up. > > Signed-off-by: Nicholas Mc Guire

Re: [PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-22 Thread Jiang, Dave
On Mon, 2016-08-22 at 18:51 +0200, Nicholas Mc Guire wrote: > schedule_timeout_* takes a timeout in jiffies but the code currently > is > passing in a constant which makes this timeout HZ dependent, so pass > it > through msecs_to_jiffies() to fix this up. > > Signed-off-by: Nicholas Mc Guire

[PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-22 Thread Nicholas Mc Guire
schedule_timeout_* takes a timeout in jiffies but the code currently is passing in a constant which makes this timeout HZ dependent, so pass it through msecs_to_jiffies() to fix this up. Signed-off-by: Nicholas Mc Guire --- Problem found by coccinelle script The below patch

[PATCH 2/2] ntb: make DMA_OUT_RESOURCE_TO HZ independent

2016-08-22 Thread Nicholas Mc Guire
schedule_timeout_* takes a timeout in jiffies but the code currently is passing in a constant which makes this timeout HZ dependent, so pass it through msecs_to_jiffies() to fix this up. Signed-off-by: Nicholas Mc Guire --- Problem found by coccinelle script The below patch sets the timeout to