The dumping thread doesn't proceed until the other CPU's have gotten into
kernel mode and done 2 IPI's. One to reschedule the other cpu's and one to
synchronize before exiting suspend_other_threads.
The way the IPI's are sent out by this patch, the other CPUs get 2 IPI's and
execute at least one IRET, and hence at least one call to schedule, before
the dumping process continues. This one call to schedule on each of the
other cpu's is what's needed to get all possible related thread processes
swapped out for the duration of the dump.
Unless the IPI's and associated IRET's get dropped by the system, that 3rd
thread will not get a chance to touch the cpu_masks before the dumping
process is finished taking its dump and resume_other_threads gets called.
Because it will have been scheduled out.
--mgross
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/