Re: [PATCH v2] vduse: avoid using __GFP_NOFAIL

2024-08-15 Thread Jason Wang
On Fri, Aug 16, 2024 at 8:17 AM Barry Song <21cn...@gmail.com> wrote: > > On Thu, Aug 8, 2024 at 5:43 PM Jason Wang wrote: > > > > Barry said [1]: > > > > """ > > mm doesn't support non-blockable __GFP_NOFAIL allocation. Because > > __GFP_NOFAIL without direct reclamation may just result in a busy

Re: [PATCH v2] vduse: avoid using __GFP_NOFAIL

2024-08-15 Thread Barry Song
On Thu, Aug 8, 2024 at 5:43 PM Jason Wang wrote: > > Barry said [1]: > > """ > mm doesn't support non-blockable __GFP_NOFAIL allocation. Because > __GFP_NOFAIL without direct reclamation may just result in a busy > loop within non-sleepable contexts. > > The current code will result in returning a

[PATCH v2] vduse: avoid using __GFP_NOFAIL

2024-08-07 Thread Jason Wang
Barry said [1]: """ mm doesn't support non-blockable __GFP_NOFAIL allocation. Because __GFP_NOFAIL without direct reclamation may just result in a busy loop within non-sleepable contexts. The current code will result in returning a NULL pointer but not a busy-loop. static inline struct page * __