gfs2: don't lock sd_log_flush_lock in try_rgrp_unlink
authorBob Peterson <rpeterso@redhat.com>
Thu, 26 Mar 2020 17:18:21 +0000 (12:18 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 27 Mar 2020 19:08:05 +0000 (14:08 -0500)
commite04d339bd8b1b6c92f3bce117d35e75c508424bf
tree679ca54c4a9277233b9efd6561a310525b8a56a4
parent4bd684bc0143b46eea6dcf4dd3a73dfd6dc7247c
gfs2: don't lock sd_log_flush_lock in try_rgrp_unlink

In function try_rgrp_unlink, we added a temporary lock of the
sd_log_flush_lock while searching the bitmaps. This protected us from
problems in which dinodes being freed were still in a state of flux
because the rgrp was in an active transaction. It was a kludge.
Now that we've straightened out the code for inode eviction, deletes,
and all the recovery mess, we no longer need this kludge.
This patch removes it, and should improve performance.

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