]> git.itanic.dy.fi Git - linux-stable/commit
jbd2: fix up sparse warnings in checkpoint code
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 05:00:49 +0000 (00:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 05:09:08 +0000 (00:09 -0500)
commit05d5233df85e9621597c5838e95235107eb624a2
tree3c5f4ed1c18416092dac29bd1a1a87d6f17ff843
parentfa329e27317f7f0762001b9fb1e76c387a9db25d
jbd2: fix up sparse warnings in checkpoint code

Add missing __acquires() and __releases() annotations.  Also, in an
"this should never happen" WARN_ON check, if it *does* actually
happen, we need to release j_state_lock since this function is always
supposed to release that lock.  Otherwise, things will quickly grind
to a halt after the WARN_ON trips.

Fixes: 96f1e0974575 ("jbd2: avoid long hold times of j_state_lock...")
Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/checkpoint.c
fs/jbd2/transaction.c