On Sun, Feb 02, 2020 at 08:30:51PM -0800, Cong Wang wrote: > The hashtable size could be controlled by user, so use flags > GFP_USER | __GFP_NOWARN to avoid OOM warning triggered by user-space. > > Also add __GFP_NORETRY to avoid retrying, as this is just a > best effort and the failure is already handled gracefully. I think OOM is unlikely to happen now that cfg->size is capped in your patch 3/3.