]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In lf_iteratelocks_vnode, increment state->ls_threads around iterating
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 25 Jun 2009 18:54:56 +0000 (18:54 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 25 Jun 2009 18:54:56 +0000 (18:54 +0000)
commit28fe6a3f3e0eea55dbd00bf186784e26c1d3b0e9
tree92e04075d212f2ab2ac88ad513f7d8675d71b079
parent9f80ce043db0c82b6f341ab58bb8b840c0dfd69e
In lf_iteratelocks_vnode, increment state->ls_threads around iterating
of the vnode advisory lock list. This prevents deallocation of state
while inside the loop.

Reported and tested by: pho
MFC after: 2 weeks
sys/kern/kern_lockf.c