svn commit: r223557 - head/sys/cam/scsi

Scott Long scottl at samsco.org
Sun Jun 26 13:19:55 UTC 2011


On Jun 25, 2011, at 7:32 PM, Justin T. Gibbs wrote:

> Author: gibbs
> Date: Sun Jun 26 01:32:46 2011
> New Revision: 223557
> URL: http://svn.freebsd.org/changeset/base/223557
> 
> Log:
> cam/scsi/scsi_cd.c:
> 	In cdregister(), hold the periph lock semaphore during changer
> 	probe/configuration.  This removes a window where an open of the
> 	cd device may succeed before probe processing has completed.
> 

I hope this works for Andre (and likely others).  Regardless though, cdregister() and daregister() need to be refactored to not require this delicate mess of locking hacks.

Scott



More information about the svn-src-all mailing list