Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Apr 2010 09:18:15 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Matthew Jacob <mj@feral.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: cam_periph_find
Message-ID:  <4BB980A7.6010704@FreeBSD.org>
In-Reply-To: <1270412582.00237665.1270399203@10.7.7.3>
References:  <1270412582.00237665.1270399203@10.7.7.3>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Jacob wrote:
> There is currently nothing that keeps a periph from disappearing between
> the time you find it with cam_periph_find and the try to 'acquire' it
> later (if you indeed do so).
> 
> What do people feel about changing the semantic of cam_periph_find to up
> the refcount (requiring the caller to release or release_locked)?

My general feeling is that everything that every reference should be
counted. But with quick look on cam_periph_find() usage I would say that
most (all?) cam_periph_find() calls protected with respective SIM lock.

-- 
Alexander Motin



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