quota: fix livelock in dquot_writeback_dquots
commit1a4437076566a758f7c11565907835d7ec7a4893
authorDmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Thu, 31 Oct 2019 10:39:19 +0000 (31 10:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 18:56:43 +0000 (17 19:56 +0100)
treefadc4a81219348bf23526aa6965af7e898014879
parent72c7fa7466f51e6ec0d0c4b2acf5d66580dcd0cb
quota: fix livelock in dquot_writeback_dquots

commit 6ff33d99fc5c96797103b48b7b0902c296f09c05 upstream.

Write only quotas which are dirty at entry.

XFSTEST: https://github.com/dmonakhov/xfstests/commit/b10ad23566a5bf75832a6f500e1236084083cddc

Link: https://lore.kernel.org/r/20191031103920.3919-1-dmonakhov@openvz.org
CC: stable@vger.kernel.org
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/quota/dquot.c