mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Remove stale comment from rw_tryupgrade()
Commit f58040c0fc
should have removed
this comment which is no longer relevant.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Clemens Fruhwirth <clemens@endorphin.org>
Issue #589
This commit is contained in:
parent
9c9ad845ef
commit
6d064f7a07
@ -213,14 +213,6 @@ RW_LOCK_HELD(krwlock_t *rwp)
|
||||
spl_rw_lockdep_on_maybe(rwp); \
|
||||
})
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
#define rw_tryupgrade(rwp) \
|
||||
({ \
|
||||
int _rc_ = 0; \
|
||||
|
Loading…
Reference in New Issue
Block a user