Module Name: src Committed By: bouyer Date: Wed Jan 28 15:08:12 UTC 2015
Modified Files: src/sys/dev: vnd.c Log Message: As discussed in http://mail-index.netbsd.org/tech-kern/2015/01/24/msg018339.html don't bump v_numoutput if we need to vn_lock() the vnode before queuing the corresponding I/O, because this may deadlock with genfs_do_putpages() when called with the vnode locked (as can happen with fsync(2)). Instead bump is just before the last VOP_STRATEGY(), or before calling nestiobuf_done(). Thanks to Taylor R Campbell for review. To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/sys/dev/vnd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.