Module Name: src Committed By: hannken Date: Tue Nov 9 16:31:48 UTC 2010
Modified Files: src/sys/miscfs/genfs: genfs_io.c Log Message: Genfs_getpages(): Break a deadlock where one thread runs VOP_GETPAGES(), has busy pages and wants the wapbl lock as reader from wapbl_begin(), another thread has the wapbl lock as reader and waits for a page from the first thread. Now a third thread calls wapbl_flush() and wants the wapbl lock as writer. Move the wapbl_begin() up to a point where genfs_getpages() has no busy pages yet. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/miscfs/genfs/genfs_io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.