Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 11:50:58 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_witness.c src/sys/sys lock.h
Message-ID:  <200307311850.h6VIow8g091646@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/07/31 11:50:58 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             subr_witness.c 
    sys/sys              lock.h 
  Log:
  Add a new function to look for a spinlock's instance when it is held by
  another thread.  We use the td_oncpu member of the other field to locate
  it's associated CPU and then search the that CPU's list of spin locks
  contained in its per-CPU data.  This is not always safe and may in fact
  panic or just not work, but it is useful in at least one case.
  
  Revision  Changes    Path
  1.157     +21 -0     src/sys/kern/subr_witness.c
  1.48      +1 -0      src/sys/sys/lock.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307311850.h6VIow8g091646>