]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: don't allow releasepage to free bd still used for revokes
authorBob Peterson <rpeterso@redhat.com>
Mon, 17 Feb 2020 20:14:13 +0000 (14:14 -0600)
committerBob Peterson <rpeterso@redhat.com>
Thu, 27 Feb 2020 13:53:18 +0000 (07:53 -0600)
commit839ef3ae51e951ee9d9b373f998c1d46a0e673b8
tree1dbcf3a5bb0d50fd9f5bdf3f6465ddea2f733779
parente3d1c6199b027d2264346aab096994b77cf3cb63
gfs2: don't allow releasepage to free bd still used for revokes

Before this patch, function gfs2_releasepage would free any bd
elements that had been used for the page being released. However,
those bd elements may still be queued to the sd_log_revokes list,
in which case we cannot free them until the revoke has been issued.

This patch adds additional checks for bds that are still being
used for revokes.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c