OSDN Git Service

gfs2: Clean up gfs2_log_reserve
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 13 Dec 2020 10:37:17 +0000 (11:37 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 3 Feb 2021 17:37:24 +0000 (18:37 +0100)
commit5ae8fff8d031b5728f4c0e36e971bba42bb78bea
treeb3f7a9d748db4d991d4534cc0b5e9505f0e934e9
parent4a3d049db42b42a36ae84eb8b59d2f5119737253
gfs2: Clean up gfs2_log_reserve

Wake up log waiters in gfs2_log_release when log space has actually become
available.  This is a much better place for the wakeup than gfs2_logd.

Check if enough log space is immeditely available before anything else.  If
there isn't, use io_wait_event to wait instead of open-coding it.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c
fs/gfs2/trans.c