Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Linux 4.8 compat: Fix RW_READ_HELD #577

Merged
merged 1 commit into from
Oct 8, 2016
Merged

Conversation

tuxoko
Copy link
Contributor

@tuxoko tuxoko commented Oct 7, 2016

Linux 4.8, starting from torvalds/linux@19c5d69, will set owner to 1 when
read held instead of leave it NULL. So we change the condition to
rw_owner(rwp) <= 1 in RW_READ_HELD.

Signed-off-by: Chunwei Chen [email protected]

Linux 4.8, starting from torvalds/linux@19c5d690e, will set owner to 1 when
read held instead of leave it NULL. So we change the condition to
`rw_owner(rwp) <= 1` in RW_READ_HELD.

Signed-off-by: Chunwei Chen <[email protected]>
@behlendorf behlendorf merged commit 2529b3a into openzfs:master Oct 8, 2016
behlendorf pushed a commit to behlendorf/spl that referenced this pull request Jan 20, 2017
Linux 4.8, starting from torvalds/linux@19c5d690e, will set owner to 1 when
read held instead of leave it NULL. So we change the condition to
`rw_owner(rwp) <= 1` in RW_READ_HELD.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs/zfs#5233 
Closes openzfs#577
behlendorf pushed a commit to behlendorf/spl that referenced this pull request Feb 2, 2017
Linux 4.8, starting from torvalds/linux@19c5d690e, will set owner to 1 when
read held instead of leave it NULL. So we change the condition to
`rw_owner(rwp) <= 1` in RW_READ_HELD.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs/zfs#5233
Closes openzfs#577
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants