On 7/26/21 9:00 AM, Christoph Hellwig wrote:
I noticed this hang while testing the iomap_iter series on gfs2,
but it also reproduces on 5.14-rc3. This is running locally with
"-O -p lock_nolock":
generic/361 files ... [ 1479.222703] run fstests generic/361 at 2021-07-26
13:57:10
(snip)
[ 1491.752284]
[ 1491.752587] =============================
[ 1491.753403] [ BUG: Invalid wait context ]
[ 1491.754122] 5.14.0-rc2+ #47 Not tainted
[ 1491.754860] -----------------------------
[ 1491.755563] kworker/2:1H/1975 is trying to lock:
(snip)
FYI: I just pushed a replacement patch to linux-gfs2/for-next.next4.
The patch I mentioned last time had problems, so this is a simplified
middle-ground between that patch and the one I suggested earlier.
Patch is a89a427e0afe.
Bob Peterson