diff options
author | Brian Behlendorf <[email protected]> | 2019-07-12 14:06:36 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-07-17 15:08:56 -0700 |
commit | e7a99dab2b065ac2f8736a65d1b226d21754d771 (patch) | |
tree | e2be088a9a762cb7a8eca537a2173f05f8d30e62 /NEWS | |
parent | 041205afee7e151a0ac10c9b5314186cf65417dc (diff) |
Linux 5.3 compat: retire rw_tryupgrade()
The Linux kernel's rwsem's have never provided an interface to
allow a reader to be upgraded to a writer. Historically, this
functionality has been implemented by a SPL wrapper function.
However, this approach depends on internal knowledge of the
rw_semaphore and is therefore rather brittle.
Since the ZFS code must always be able to fallback to rw_exit()
and rw_enter() when an rw_tryupgrade() fails; this functionality
isn't critical. Furthermore, the only potentially performance
sensitive consumer is dmu_zfetch() and no decrease in performance
was observed with this change applied. See the PR comments for
additional testing details.
Therefore, it is being retired to make the build more robust and
to simplify the rwlock implementation.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Tomohiro Kusumi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #9029
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions