]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/zfs_context.h
OpenZFS 6739 - assumption in cv_timedwait_hires
authorDenys Rtveliashvili <denys@rtveliashvili.name>
Sun, 15 May 2016 22:18:25 +0000 (22:18 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 15 May 2016 22:18:25 +0000 (15:18 -0700)
commit206971d234431e7599249a2688c4fcea5395acb0
treeb91598c59e8fdbfcca4addfd95e9bd9ec1c63dc1
parentdabe1c42f9724ab030dea7fc1db1c924d21a8a6a
OpenZFS 6739 - assumption in cv_timedwait_hires

Userland version of cv_timedwait_hires() always assumes absolute time.

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Ported by: Denys Rtveliashvili <denys@rtveliashvili.name>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/6739
OpenZFS-commit: https://github.com/illumos/illumos-gate/commit/41c6413

Porting Notes:
The ported change has revealed a number of problems in the Linux-specific code,
as it was expecting incorrect return codes from pthread_* functions.
Reviewed and improved the usage of pthread_* function in lib/libzpool/kernel.c.
include/sys/zfs_context.h
lib/libzpool/kernel.c