Files
linux/fs/afs
David Howells 2d4979582b afs: Fix double inc of vnode->cb_break
[ Upstream commit fd711586bb ]

When __afs_break_callback() clears the CB_PROMISED flag, it increments
vnode->cb_break to trigger a future refetch of the status and callback -
however it also calls afs_clear_permits(), which also increments
vnode->cb_break.

Fix this by removing the increment from afs_clear_permits().

Whilst we're at it, fix the conditional call to afs_put_permits() as the
function checks to see if the argument is NULL, so the check is redundant.

Fixes: be080a6f43 ("afs: Overhaul permit caching");
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:49 +01:00
..
2008-04-29 08:06:26 -07:00
2018-04-09 21:53:59 +01:00
2019-09-10 10:33:52 +01:00
2018-10-12 13:18:57 +02:00
2018-06-15 00:52:55 -04:00
2018-02-06 14:43:37 +00:00
2018-10-12 13:18:57 +02:00
2018-11-27 16:13:00 +01:00