upstream 3d5fe03a3ea01 -stable backport request
Hello,
Please add upstream 'commit 3d5fe03a3ea01 ("zram/zcomp: use GFP_NOIO to allocate streams")' to stable releases.
:commit 3d5fe03a3ea013060ebba2a811aeb0f23f56aefa :Author: Sergey Senozhatsky <[email protected]> :
: zram/zcomp: use GFP_NOIO to allocate streams
:
: We can end up allocating a new compression stream with GFP_KERNEL from : within the IO path, which may result is nested (recursive) IO : operations. That can introduce problems if the IO path in question is a : reclaimer, holding some locks that will deadlock nested IOs.
:
: Allocate streams and working memory using GFP_NOIO flag, forbidding
: recursive IO and FS operations.
-ss
Quoted 6 lines · Sergey Senozhatsky
Hello,
Please add upstream 'commit
3d5fe03a3ea01("zram/zcomp: useGFP_NOIOto allocate streams")' to stable releases.
[v3.15+]
-ss
Quoted 17 lines
:commit
3d5fe03a3ea013060ebba2a811aeb0f23f56aefa:Author: Sergey Senozhatsky <[email protected]> :
: zram/zcomp: useGFP_NOIOto allocate streams
:: We can end up allocating a new compression stream with GFP_KERNEL from : within the IO path, which may result is nested (recursive) IO : operations. That can introduce problems if the IO path in question is a : reclaimer, holding some locks that will deadlock nested IOs.:
: Allocate streams and working memory usingGFP_NOIOflag, forbidding
: recursive IO and FS operations.-ss