cvs commit: src/sys/dev/sound/pcm dsp.c

Don Lewis truckman at FreeBSD.org
Sat Feb 28 11:42:49 PST 2004


truckman    2004/02/28 11:42:49 PST

  FreeBSD src repository

  Modified files:
    sys/dev/sound/pcm    dsp.c 
  Log:
  Lock channels only as necessary in dsp_ioctl(), and only lock one
  channel at a time unless it is actually necessary to lock both.
  This avoids problems with lock order reversal and malloc() calls
  with a mutex held when lower level code unlocks a channel, calls malloc(),
  and relocks the channel.  This also avoids the cost of some  unnecessary
  locking and unlocking.
  
  Tested by:      matk
  
  Revision  Changes    Path
  1.74      +173 -65   src/sys/dev/sound/pcm/dsp.c


More information about the cvs-src mailing list