Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2008 23:39:22 -0800 (PST)
From:      Matthew Jacob <mj@feral.com>
To:        scsi@freebsd.org
Subject:   hole in passregister?
Message-ID:  <20080219233752.R7973@ns1.feral.com>

next in thread | raw e-mail | index | archive | help

...
         mtx_unlock(periph->sim->mtx);
 	...
         mtx_lock(periph->sim->mtx);
         softc->dev->si_drv1 = periph;

         /*
          * Add an async callback so that we get
          * notified if this device goes away.
          */
         xpt_register_async(AC_LOST_DEVICE, passasync, periph, periph->path);
....
the device can go away prior to xpt_register_async being called I think.




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