cvs commit: src/sys/amd64/amd64 mp_machdep.c pmap.c src/sys/i386/i386 mp_machdep.c pmap.c src/sys/kern subr_smp.c src/sys/sys smp.h

Peter Wemm peter at FreeBSD.org
Mon Aug 23 14:39:29 PDT 2004


peter       2004-08-23 21:39:29 UTC

  FreeBSD src repository

  Modified files:
    sys/amd64/amd64      mp_machdep.c pmap.c 
    sys/i386/i386        mp_machdep.c pmap.c 
    sys/kern             subr_smp.c 
    sys/sys              smp.h 
  Log:
  Commit Doug White and Alan Cox's fix for the cross-ipi smp deadlock.
  We were obtaining different spin mutexes (which disable interrupts after
  aquisition) and spin waiting for delivery.  For example, KSE processes
  do LDT operations which use smp_rendezvous, while other parts of the
  system are doing things like tlb shootdowns with a different mutex.
  
  This patch uses the common smp_rendezvous mutex for all MD home-grown
  IPIs that spinwait for delivery.  Having the single mutex means that
  the spinloop to aquire it will enable interrupts periodically, thus
  avoiding the cross-ipi deadlock.
  
  Obtained from: dwhite, alc
  Reviewed by:   jhb
  
  Revision  Changes    Path
  1.243     +2 -5      src/sys/amd64/amd64/mp_machdep.c
  1.492     +6 -6      src/sys/amd64/amd64/pmap.c
  1.236     +2 -4      src/sys/i386/i386/mp_machdep.c
  1.495     +8 -8      src/sys/i386/i386/pmap.c
  1.189     +8 -1      src/sys/kern/subr_smp.c
  1.78      +1 -0      src/sys/sys/smp.h


More information about the cvs-src mailing list