]> git.proxmox.com Git - mirror_spl.git/commit
Linux 4.8 compat: Fix RW_READ_HELD
authortuxoko <tuxoko@gmail.com>
Sat, 8 Oct 2016 03:53:58 +0000 (20:53 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 8 Oct 2016 03:53:58 +0000 (20:53 -0700)
commit2529b3a80e1bf1713c0ecbedb246654a0968b4d2
treeb956d9a81ba0742124a095164c60b705283331f0
parent341dfdb3fd44048a3149e8376b2a0f94da56f01a
Linux 4.8 compat: Fix RW_READ_HELD

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 <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes zfsonlinux/zfs#5233
Closes #577
include/sys/rwlock.h