Date: Thu, 09 Mar 2017 10:59:27 +0100 From: Alexandre Martins <alexandre.martins@stormshield.eu> To: freebsd-current <freebsd-current@freebsd.org> Subject: Re: smp_rendezvous_action: Are atomics correctly used ? Message-ID: <4355496.HzrDjoMEL6@pc-alex> In-Reply-To: <2092905.6A8RAGlt18@pc-alex> References: <2092905.6A8RAGlt18@pc-alex>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] I have the save question for the cpu_ipi_pending here: https://svnweb.freebsd.org/base/head/sys/x86/x86/mp_x86.c?view=annotate#l1080 Le jeudi 9 mars 2017, 10:43:14 Alexandre Martins a crit : > Hello, > > I'm curently reading the code of the function smp_rendezvous_action, in > kern/subr_smp.c file. In that function, i see that the variable > smp_rv_waiters is read in some while() loop in a non-atomic way. > > https://svnweb.freebsd.org/base/head/sys/kern/subr_smp.c?view=annotate#l412 > https://svnweb.freebsd.org/base/head/sys/kern/subr_smp.c?view=annotate#l458 > https://svnweb.freebsd.org/base/head/sys/kern/subr_smp.c?view=annotate#l472 > > I suspect one of my freeze to be due by that. > > Should this function be patched to use > "atomic_load_acq_int(&smp_rv_waiters[])" ? > > Best regards -- Alexandre Martins STORMSHIELD [-- Attachment #2 --] 0 *H 010 `He 0 *H 00n 0 *H 0H10 UFR10U STORMSHIELD1#0!UStormshield Root Authority0 140904150710Z 240901150710Z0I10 UFR10U STORMSHIELD1$0"UStormshield Users Authority0"0 *H 0 X6[t.D Uge0-2;h@eȻClΫpB#M,FY=.{ya{2πߢ 7 <d~O;ޅԋ&C 8ُ6@CXX>|abqenmI, O&'۰@%OhW& {52D%_8#f]G0ct y\ v0t0Uml||uu4[ׁ0U#0BgDaP0U00U0 `HB0 *H N9-؞>m-K!M-7zD6IZʾr>q?u ?xr6_'NջZ7]V\5Y&))m@~^Qdp/H3ͦ`o⬋U,z,0Bdp!C2K8.r>0-1!C%3U2ϠMg~3͟wͲAZ&vF/BA$_ڀV! s7)=-nP>qH~g/Rs,PAJVm#QXJo */V|sĿj~y߽j 3]v3ƌqe`Y|HB3lC!^J2$4A`Z+( 7b{e˄wʈ<L=6[3`>IQFaiܝ ?:_yԊ /`0W0? (˻0 *H 0I10 UFR10U STORMSHIELD1$0"UStormshield Users Authority0 160901151108Z 170901151108Z0p10 UFR10U STORMSHIELD10UAlexandre MARTINS1/0- *H alexandre.martins@stormshield.eu0"0 *H 0 ~ {x~;#3BgXC[rSVuv#>aL0w}""v`B)Db8qHkH\d qB6rd|:%Ze[wi3)$! hXε<صVO}# EjJegk0%L퉬Q'b}3"*(_T- w?gR H,\aWO4Ǘ Y3TR(Wn7Sv1n8xIan 00UD0IM_W]A$v#<0U#0ml||uu4[ׁ0 U0 0U0 `HB0U%0++0JUC0A0?=;9https://pki.netasq.com/auth/certificaterevocationlist.crl0U 00U 0+U$0" alexandre.martins@stormshield.eu0 *H 5hhN ̛U92+Ejr@|f{`J2X!ȳ.ڤ|^*$"vlHtSeeAܟ-bC$*)ЖWJL >5@|N%·%{i-4akG앏]%.ݤp]7B/ *1WE@zZoq@fk0NpHObD$9jXḓSk~LKX100R0I10 UFR10U STORMSHIELD1$0"UStormshield Users Authority (˻0 `He 0 *H 1 *H 0 *H 1 170309095927Z0( *H 100 `He0 *H 0/ *H 1" δˇ!dN#)RҹLf.@O0 *H ,'fy_ /hJn9tAfFKjishG_W|vV5 DHre\2H@hqH4xvPTT"QwbP[*8'JEɛ[L5z+@ < ӎ ^RSFܢ6A_! amoFmqyF_ڶjMYuTY&oRNF%help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4355496.HzrDjoMEL6>
