Commit e37a8f1f authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: fix hang in __get_metapage

A previous patch to fix a race introduced a hang if more than one
thread is waiting for a "stale" metapage.
parent dd766957
......@@ -239,6 +239,7 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
spin_unlock(&meta_lock);
if (test_bit(META_stale, &mp->flag)) {
release_metapage(mp);
yield(); /* Let other waiters release it, too */
goto again;
}
if (test_bit(META_discard, &mp->flag)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment