Re: [PATCH] nes: handling failed allocation when creating workqueue

2016-02-18 Thread Doug Ledford
On 2/17/2016 11:59 PM, Leon Romanovsky wrote: > Please see my minor comments below. > Reviewed-by: Leon Romanovsky > > On Wed, Feb 17, 2016 at 01:06:33PM -0500, Insu Yun wrote: >> Since create_singlethread_workqueue uses kzalloc internally, >> it can be failed in memory pressure, so need to hand

Re: [PATCH] nes: handling failed allocation when creating workqueue

2016-02-17 Thread Leon Romanovsky
Please see my minor comments below. Reviewed-by: Leon Romanovsky On Wed, Feb 17, 2016 at 01:06:33PM -0500, Insu Yun wrote: > Since create_singlethread_workqueue uses kzalloc internally, > it can be failed in memory pressure, so need to handle it. s/can be failed/can fail/ > > Signed-off-by: I

[PATCH] nes: handling failed allocation when creating workqueue

2016-02-17 Thread Insu Yun
Since create_singlethread_workqueue uses kzalloc internally, it can be failed in memory pressure, so need to handle it. Signed-off-by: Insu Yun --- drivers/infiniband/hw/nes/nes_cm.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/nes/nes_