mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-10 05:37:25 +00:00
Free pending recovery state on shutdown
scoutfs_recov_shutdown() tried to move the recovery tracking structs off the shared list and into a private list so they could be freed. But then it went and walked the now empty shared list to free entries. It should walk the private list. This would leak a small amount of memory in the rare cases where the server was shutdown while recovery was still pending. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -262,7 +262,7 @@ void scoutfs_recov_shutdown(struct super_block *sb)
|
||||
recinf->timeout_fn = NULL;
|
||||
spin_unlock(&recinf->lock);
|
||||
|
||||
list_for_each_entry_safe(pend, tmp, &recinf->pending, head) {
|
||||
list_for_each_entry_safe(pend, tmp, &list, head) {
|
||||
list_del(&pend->head);
|
||||
kfree(pend);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user