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)
commit019dd669bde14bc0748bc43af2f96e2c5e37d3f8
tree1dbcf3a5bb0d50fd9f5bdf3f6465ddea2f733779
parentca399c96e96e3f372f901a698a6fd17796b8ed32
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