Date: Mon, 8 Aug 2011 07:52:32 -0700 From: Chuck Tuffli <chuck@tuffli.net> To: Matthew Jacob <mj@feral.com> Cc: freebsd-scsi@freebsd.org Subject: Re: some changes to xpt to help make unloading sim modules safer Message-ID: <CAM0tzX13hWBpXfB06xbbA9n6d2qjFc4p6GGdhtV4CBwNG%2BKoqA@mail.gmail.com> In-Reply-To: <4E3F0332.7030004@feral.com> References: <4E3F0332.7030004@feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 7, 2011 at 2:27 PM, Matthew Jacob <mj@feral.com> wrote: > > See http://people.freebsd.org/~mjacob/xpt_patches.txt Matt - Thanks for doing this. So it seems the rule is to hold xsoftc.xpt_topo_lock while modifying bus->refcount . If so, does xpt_alloc_target need mtx_lock() / mtx_unlock() around bus->refcount++ ? ---chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM0tzX13hWBpXfB06xbbA9n6d2qjFc4p6GGdhtV4CBwNG%2BKoqA>