]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit137759f7701cce2f1f3135d290467a9a794cd231
treeb3f7a9d748db4d991d4534cc0b5e9505f0e934e9
parentaaa9d71f7de20838070a630dbd779b2ebd3978fe
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