Discussion:
Dead lock issue
Martinez, Jesus A
2004-09-16 16:52:26 UTC
Permalink
I've run into a deadlock issue in the JFFS2 code in the 2.6.7 Linux
kernel. Basically, jffs2_readpage is called with the page already locked
and then first tries to down f->sem before calling
jffs2_do_readpage_unlock. In contrast, the jffs2_setattr first downs
f->sem and then calls vmtruncate which will wait until the pages are all
unlocked. If the timing is right (or wrong) this will lead to a
deadlock.

Can anybody suggest a way of fixing this.

Thanks,
Jesus A. Martinez


To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to ***@axis.com

Loading...