Re: [PATCH] IB/mlx5: Postpone remove_keys under knowledge of coming preemption

2015-11-02 Thread Leon Romanovsky
On Wed, Oct 21, 2015 at 9:21 AM, Leon Romanovsky wrote: > From: Leon Romanovsky > > The remove_keys() logic is performed as garbage collection task. Such > task is intended to be run when no other active processes are running. > > The need_resched() will return

[PATCH] IB/mlx5: Postpone remove_keys under knowledge of coming preemption

2015-10-21 Thread Leon Romanovsky
From: Leon Romanovsky The remove_keys() logic is performed as garbage collection task. Such task is intended to be run when no other active processes are running. The need_resched() will return TRUE if there are user tasks to be activated in near future. In such case, we