Re: [PATCH V2 net-next] rds: do not call ->conn_alloc with GFP_KERNEL

2018-02-13 Thread David Miller
From: Sowmini Varadhan Date: Tue, 13 Feb 2018 09:05:44 -0800 > Commit ebeeb1ad9b8a ("rds: tcp: use rds_destroy_pending() to synchronize > netns/module teardown and rds connection/workq management") > adds an rcu read critical section to __rd_conn_create. The > memory

[PATCH V2 net-next] rds: do not call ->conn_alloc with GFP_KERNEL

2018-02-13 Thread Sowmini Varadhan
Commit ebeeb1ad9b8a ("rds: tcp: use rds_destroy_pending() to synchronize netns/module teardown and rds connection/workq management") adds an rcu read critical section to __rd_conn_create. The memory allocations in that critcal section need to use GFP_ATOMIC to avoid sleeping. This patch was

Re: [PATCH V2 net-next] rds: do not call ->conn_alloc with GFP_KERNEL

2018-02-13 Thread Santosh Shilimkar
On 2/13/2018 9:05 AM, Sowmini Varadhan wrote: Commit ebeeb1ad9b8a ("rds: tcp: use rds_destroy_pending() to synchronize netns/module teardown and rds connection/workq management") adds an rcu read critical section to __rd_conn_create. The memory allocations in that critcal section need to use