]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Prevent memory allocation recursion while holding dq_lock
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 5 Jun 2022 14:38:13 +0000 (15:38 +0100)
committerJan Kara <jack@suse.cz>
Mon, 6 Jun 2022 08:08:10 +0000 (10:08 +0200)
commit4892d92182d8a92382894959cb2355344bae3830
treef52707439580c1c059f989ab9f1823b7637bd161
parent2eacea2ab2b2981a8eaabf9466f5d44c8c79b6d9
quota: Prevent memory allocation recursion while holding dq_lock

As described in commit d3df91cdc8f9 ("f2fs: Set GF_NOFS in
read_cache_page_gfp while doing f2fs_quota_read"), we must not enter
filesystem reclaim while holding the dq_lock.  Prevent this more generally
by using memalloc_nofs_save() while holding the lock.

Link: https://lore.kernel.org/r/20220605143815.2330891-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c