Date: Tue, 16 Oct 2007 15:39:13 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 127602 for review Message-ID: <200710161539.l9GFdDZ6046523@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127602 Change 127602 by zec@zec_tca51 on 2007/10/16 15:39:07 The vcpu list needs to be protected not only when new items are added to it, but when they get removed as well. Affected files ... .. //depot/projects/vimage/src/sys/kern/kern_vimage.c#45 edit Differences ... ==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#45 (text+ko) ==== @@ -721,7 +721,9 @@ LIST_REMOVE(vprocg, vprocg_le); vi_free(vprocg, M_VPROCG); + mtx_lock_spin(&vcpu_list_mtx); LIST_REMOVE(vcpu, vcpu_le); + mtx_unlock_spin(&vcpu_list_mtx); vi_free(vcpu, M_VCPU); LIST_REMOVE(vip, vi_le);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710161539.l9GFdDZ6046523>