Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd532490 authored by Joakim Tjernlund's avatar Joakim Tjernlund Committed by David Woodhouse
Browse files

[JFFS2] Fix hanging close for /dev/mtd character device.



When pdflush is erasing lots of sectors, drivers calling
mtd->sync will hang until all blocks are erased. Be nicer.

Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent b75ae860
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -142,7 +142,7 @@ void jffs2_erase_pending_blocks(struct jffs2_sb_info *c, int count)
		}
		}


		/* Be nice */
		/* Be nice */
		cond_resched();
		yield();
		spin_lock(&c->erase_completion_lock);
		spin_lock(&c->erase_completion_lock);
	}
	}