mirror_zfs/include
Brian Behlendorf a6ae97caed Add rw_tryupgrade()
This implementation of rw_tryupgrade() behaves slightly differently
from its counterparts on other platforms.  It drops the RW_READER lock
and then acquires the RW_WRITER lock leaving a small window where no
lock is held.  On other platforms the lock is never released during
the upgrade process.  This is necessary under Linux because the kernel
does not provide an upgrade function.

There are currently no callers in the ZFS code where this change in
behavior is a problem.  In fact, in most cases the code is already
written such that if the upgrade fails the RW_READER lock is dropped
and the caller blocks waiting to acquire the lock as RW_WRITER.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Closes zfsonlinux/zfs#4388
Closes #534
2016-03-10 13:05:25 -08:00
..
fs Kernel header installation should respect --prefix 2014-10-28 09:31:48 -07:00
linux Fix lockdep warning in spl_inode_{lock,unlock} 2015-12-11 16:19:47 -08:00
rpc Kernel header installation should respect --prefix 2014-10-28 09:31:48 -07:00
sharefs Kernel header installation should respect --prefix 2014-10-28 09:31:48 -07:00
sys Add rw_tryupgrade() 2016-03-10 13:05:25 -08:00
util Support parallel build trees (VPATH builds) 2015-07-17 12:53:11 -07:00
vm Kernel header installation should respect --prefix 2014-10-28 09:31:48 -07:00
Makefile.am Retire legacy debugging infrastructure 2014-11-19 10:35:07 -08:00
spl-ctl.h Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-ctl.h Update code to use misc_register()/misc_deregister() 2014-10-17 15:07:28 -07:00
strings.h Refresh links to web site 2013-03-04 19:09:34 -08:00
unistd.h Refresh links to web site 2013-03-04 19:09:34 -08:00