diff options
author | Clemens Fruhwirth <[email protected]> | 2016-12-17 17:10:25 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-12-19 11:27:27 -0800 |
commit | 6d064f7a07fe8366e113f45931e5f2921dcabda2 (patch) | |
tree | b3670901a09474042effc7d21b9cca4c36797329 | |
parent | 9c9ad845ef372a4c47a01c20e939fd2c40bc7ac6 (diff) |
Remove stale comment from rw_tryupgrade()
Commit f58040c0fc8bc6490fcc75db7fc3e709dfc3c656 should have removed
this comment which is no longer relevant.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Clemens Fruhwirth <[email protected]>
Issue #589
-rw-r--r-- | include/sys/rwlock.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/sys/rwlock.h b/include/sys/rwlock.h index 4197785db..ffb7b90b6 100644 --- a/include/sys/rwlock.h +++ b/include/sys/rwlock.h @@ -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; \ |