Andriy Gapon 35edc49853 smp_rendezvous: master cpu should wait until all slaves are fully done
This is a followup to r222032 and a reimplementation of it.
While that revision fixed the race for the smp_rv_waiters[2] exit
sentinel, it still left a possibility for a target CPU to access
stale or wrong smp_rv_func_arg in smp_rv_teardown_func.
To fix this race the slave CPUs signal when they are really fully
done with the rendezvous and the master CPU waits until all slaves
are done.

Diagnosed by:	kib
Reviewed by:	jhb, mlaier, neel
Approved by:	re (kib)
MFC after:	2 weeks
2011-07-30 20:29:39 +00:00
..
2011-04-13 11:28:46 +00:00
2010-11-22 15:28:54 +00:00
2010-11-25 20:05:11 +00:00
2011-07-10 00:53:04 +00:00
2011-06-27 13:02:23 +00:00
2010-01-04 20:59:52 +00:00
2010-11-14 16:10:15 +00:00
2011-07-11 05:17:46 +00:00