]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Generate warnings for DQUOT_SPACE_NOFAIL allocations
authorJan Kara <jack@suse.cz>
Tue, 10 Oct 2017 12:40:42 +0000 (14:40 +0200)
committerJan Kara <jack@suse.cz>
Tue, 10 Oct 2017 15:24:46 +0000 (17:24 +0200)
commit400fe7bd6982c399543b08fd6a150258335f1964
treedbdf63d52ad96a04ad21c1cc20c8b92e12db048e
parentfb8141d6423a2379f3dbd29ab43279906f1659cd
quota: Generate warnings for DQUOT_SPACE_NOFAIL allocations

Eryu has reported that since commit 68f6504d7e15 "quota: Reduce
contention on dq_data_lock" test generic/233 occasionally fails. This is
caused by the fact that since that commit we don't generate warning and
set grace time for quota allocations that have DQUOT_SPACE_NOFAIL set
(these are for example some metadata allocations in ext4). We need these
allocations to behave regularly wrt warning generation and grace time
setting so fix the code to return to the original behavior.

Reported-and-tested-by: Eryu Guan <eguan@redhat.com>
CC: stable@vger.kernel.org
Fixes: 68f6504d7e15fedfed3ba68bee529c1d8f2a4b9e
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c