Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2011 13:20:05 +0100
From:      Ed Schouten <ed@80386.nl>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: Changing refcount(9) to use a refcount_t
Message-ID:  <20111223122005.GZ1771@hoeg.nl>
In-Reply-To: <20111223112846.GA1679@garage.freebsd.pl>
References:  <20111222214728.GV1771@hoeg.nl> <20111223112846.GA1679@garage.freebsd.pl>

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

[-- Attachment #1 --]
Hi Pawel,

* Pawel Jakub Dawidek <pjd@FreeBSD.org>, 20111223 12:28:
> You changing here vendor code and we still don't want to do that if
> avoidable, as we want to share code with IllumOS.

To clarify, the changes made to rrwlock.* are likely applicable to
IllumOS as well. It effectively fixes misuse of the API, where
refcount_t is dereferenced, but also optimizes the code not to use
atomics on the counters, as they are already protected by a mutex.

-- 
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iQIcBAEBAgAGBQJO9HH1AAoJEG5e2P40kaK7/qoQAKJm/TOW1NFWBqlY9mozcgdU
9VeIHNNr8iqeE7I9XZDu/UiXWzTXyLk0P3FdvpHAIHlwwf7dogiAwu/1fsnltcX6
0pe6tdQpA1sKWuKcCqdTJjT7OTvcP23n2VYv4JFah/FBirh7TdbLEVCqs0VAospr
Amw8VLdK7RMMToer71OwI0zDo9jdXvttXOZz9XxIvRtHw1G9tTKUIzJejf0y8wjh
zaG8pMW7uqROOIkNRMjA1fxue0uJfjQP4Fg7w/q6MYX44sVyOdgKf6jLin11zTVx
5H7QLapxSl9GUpraZMsu1zMZxQWRmfDDEhLX8Bna/EIlzBROV+BTkmzQCOvHs4zN
wRr0uOY+zc/6BHm25jtHqOUKrGQQWdcDKeksxFqlVvntheaVXtW7NcUArVItmUCM
hLq0Qz5+ysw7sH/BSRFZmNJLjfCg90UDmYXdBjrPDnZdRB+VdY/ybOtXw612nzC1
jP2b8fI14Xk+pASS9zejulZKYikhLjZQjXbN1N/jsUGTknClWnjMwESN9+sStXFU
ZMDheXooaSU+nHMxD6H/PsemfupbHPrffWTnD4TB9g+cccH/HOAOC0f1VS2as2G7
i3vKEKZblh23VE1T8iNcwEN9grS8RCG181QLcVsHRI6PNTQbTgmYyB2eUdmE+uwI
ZFMLBaBWyy+T0dufHn28
=CRTY
-----END PGP SIGNATURE-----

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