On Wed, Sep 23, 2020 at 11:27:55AM +0530, Pradeep P V K wrote: > Changes since V2: > - updated memalloc_nofs_save() to allocation paths that potentially > can cause deadlock. That's the exact opposite of what I said to do. Again, the *THREAD* is the thing which must not block, not the *ALLOCATION*. So you set this flag *ON THE THREAD*, not *WHEN IT DOES AN ALLOCATION*. If that's not clear, please ask again.