]> git.ipfire.org Git - people/arne_f/kernel.git/commit
gfs2: initialize transaction tr_ailX_lists earlier
authorBob Peterson <rpeterso@redhat.com>
Fri, 5 Jun 2020 19:12:34 +0000 (14:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 08:46:33 +0000 (10:46 +0200)
commit9a81aa7adf2ecf5090a18e496b9e9b66f0e34a25
tree06628b54eb2cf77b7a578595947c654d0e47b984
parent5f12fccbcc611adac9de8fc00c76dcae31a4a7d9
gfs2: initialize transaction tr_ailX_lists earlier

commit cbcc89b630447ec7836aa2b9242d9bb1725f5a61 upstream.

Since transactions may be freed shortly after they're created, before
a log_flush occurs, we need to initialize their ail1 and ail2 lists
earlier. Before this patch, the ail1 list was initialized in gfs2_log_flush().
This moves the initialization to the point when the transaction is first
created.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Salvatore Bonaccorso <carnil@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/glops.c
fs/gfs2/log.c
fs/gfs2/trans.c