Re: [dpdk-dev] [PATCH 3/3] memalloc: fix unmapping and marking segments as free

2018-05-10 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Thursday, May 3, 2018 11:11 AM > To: dev@dpdk.org > Cc: Liu, Yong ; Burakov, Anatoly > > Subject: [dpdk-dev] [PATCH 3/3] memalloc: fix unmapping and markin

[dpdk-dev] [PATCH 3/3] memalloc: fix unmapping and marking segments as free

2018-05-03 Thread Anatoly Burakov
Currently, page deallocation might fail if allocator cannot get page fd, which will leave VA space still mapped, and will also not mark page as free. Fix page deallocation function to always unmap space before trying to get rid of the page itself, and always mark page as free even if page dealloca