Date: Sun, 07 Aug 2011 14:27:14 -0700 From: Matthew Jacob <mj@feral.com> To: freebsd-scsi@freebsd.org Subject: some changes to xpt to help make unloading sim modules safer Message-ID: <4E3F0332.7030004@feral.com>
next in thread | raw e-mail | index | archive | help
See http://people.freebsd.org/~mjacob/xpt_patches.txt The first one come from a coworker (Chuck Tuffli) who found a hole xpt_create_path_unlocked. I added a few after that to guard against overrunning some counters so that they would wrap. It helped me find out what was going on much easier by adding the function described here: http://people.freebsd.org/~mjacob/xpt_path_counts.txt Finally, http://people.freebsd.org/~mjacob/isp_patches.txt makes isp safe for unload as a module. There's some ambiguity over whether it's safe to unload when a periph is open. Using xpt_path_counts to check with the bus reference count is > 3 for each scsibus attached to each isp sim is a way to avoid that. Comments?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E3F0332.7030004>