]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Drop a sleepable lock when we plan on sleeping
authorimp <imp@FreeBSD.org>
Wed, 18 Dec 2019 16:01:15 +0000 (16:01 +0000)
committerimp <imp@FreeBSD.org>
Wed, 18 Dec 2019 16:01:15 +0000 (16:01 +0000)
commitb401f8a4a8725dc063fa5a0e9c0d66a90415cb68
tree8c07a17cfd0c8236f151f3ac3d693a8dd789addb
parentf2fb2c44a84f85bb5bebadd03fb7c10fd17f4ce2
Drop a sleepable lock when we plan on sleeping

g_io_speedup waits for the completion of the speedup request before proceeding
using biowait(), but check_clear_deps is called with the softdeps lock held
(which is non-sleepable). It's safe to drop this lock around the call to
speedup, so do that.

Submitted by: Peter Holm
Reviewed by: kib@
sys/ufs/ffs/ffs_softdep.c