Files
twx-linux/fs
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
..
…
…
2019-08-06 19:06:51 +02:00
2019-12-13 08:52:23 +01:00
…
2019-12-17 20:35:18 +01:00
2020-01-17 19:47:13 +01:00
2019-12-13 08:52:36 +01:00
2018-08-17 16:20:28 -07:00
2019-12-13 08:51:59 +01:00
2020-01-09 10:19:03 +01:00
…
2018-08-17 16:20:27 -07:00
…
…
…
2019-11-20 18:46:04 +01:00
2019-05-02 09:58:59 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…