Skip to contentSkip to conversation

upstream 3d5fe03a3ea01 -stable backport request

stable Sergey Senozhatsky 1 participant 2 messages Jan 25, 2016 Stable branch

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 6 lines · Sergey Senozhatsky

Hello,

Please add upstream 'commit 3d5fe03a3ea01 ("zram/zcomp: use GFP_NOIO to allocate streams")' to stable releases.

[v3.15+]

	-ss
Quoted 17 lines

: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