[zfs-code] R/W lock portability issue

2007-11-24 Thread Ricardo M. Correia
-- <http://www.sun.com> *Ricardo Manuel Correia* Lustre Engineering *Sun Microsystems, Inc.* Portugal -- next part -- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20071124/7c512a66/attachme

[zfs-code] R/W lock portability issue

2007-11-24 Thread Ricardo M. Correia
URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20071124/9f1069aa/attachment.html> -- next part -- A non-text attachment was scrubbed... Name: 6g_top.gif Type: image/gif Size: 1257 bytes Desc: not available URL: <http://mail.opensolaris.org/pipe

[zfs-code] R/W lock portability issue

2007-11-24 Thread Neil Perrin
Ricardo M. Correia wrote: > Ricardo M. Correia wrote: >> boolean_t need_lock = !RW_LOCK_HELD(&dp->dp_config_rwlock); >> >> if (need_lock) >> rw_enter(&dp->dp_config_rwlock, RW_READER); >> > > Maybe I posted to soon. > Am I right that this specific code (in dsl_dataset.c) would work > co