]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Delay withdraw from atomic context
authorBob Peterson <rpeterso@redhat.com>
Fri, 30 Jul 2021 18:23:49 +0000 (13:23 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 20 Aug 2021 14:03:46 +0000 (09:03 -0500)
commit19d337c938e69a1824101dcdf9f562be5c23cb36
tree62335d3b52439c15148456acff2f7a685b841a55
parent8a8bfa5d4841afc71cf5cba4e42077175b1726b6
gfs2: Delay withdraw from atomic context

Before this patch, if function __gfs2_ail_flush detected an error
syncing the ail list, it call gfs2_ail_error which called gfs2_withdraw.
Since __gfs2_ail_flush deals with a specific glock, we shouldn't withdraw
immediately because the withdraw code (signal_our_withdraw) uses glocks
in its processing.

This patch changes the call from gfs2_withdraw to gfs2_withdraw_delayed
which defers the withdraw until a more appropriate context, such as the
logd daemon, discovers the intent to withdraw.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glops.c