Date: Wed, 14 Dec 2011 00:43:22 +0200 From: Alexander Motin <mav@FreeBSD.org> To: Chuck Tuffli <chuck@tuffli.net> Cc: freebsd-scsi <freebsd-scsi@freebsd.org> Subject: CAM locking question Message-ID: <4EE7D50A.6080201@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi. > As an experiment, I added CAM_SIM_LOCK/CAM_SIM_UNLOCK around the > TAILQ_INSERT_TAIL() in xpt_done(), and what was a reliable hang after > a minute or two hasn't shown up in an hour. There is no assertion, but in all cases I remember xpt_done() called while holding SIM lock. Adding another CAM_SIM_LOCK/CAM_SIM_UNLOCK should cause lock recursion and panic, if kernel built with INVARIANTS. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EE7D50A.6080201>