Dead lock issue
"Martinez, Jesus A" <[email protected]> Thu, 16 Sep 2004 09:52:26 -0700
| Newsgroups | gmane.linux.file-systems.jffs |
|---|---|
| Message-ID | <2AF68A477DD44C4EBCBE338C24E7A9EE021EBDD3@orsmsx408> |
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 [email protected]