Re: [PATCH 2/2] sctp: implement memory accounting on rx path

2020-05-05 Thread Greg KH
On Wed, May 06, 2020 at 07:50:54PM +0530, ashwin-h wrote: > From: Xin Long > > commit 9dde27de3e5efa0d032f3c891a0ca833a0d31911 upstream. > > sk_forward_alloc's updating is also done on rx path, but to be consistent > we change to use sk_mem_charge() in sctp_skb_set_owner_r(). > > In sctp_eat_da

[PATCH 2/2] sctp: implement memory accounting on rx path

2020-05-05 Thread ashwin-h
From: Xin Long commit 9dde27de3e5efa0d032f3c891a0ca833a0d31911 upstream. sk_forward_alloc's updating is also done on rx path, but to be consistent we change to use sk_mem_charge() in sctp_skb_set_owner_r(). In sctp_eat_data(), it's not enough to check sctp_memory_pressure only, which doesn't wo