]> granicus.if.org Git - zfs/commit
Linux 4.20 compat: Fix VERIFY(RW_READ_HELD(&hash->mh_contents))
authorTony Hutter <hutter2@llnl.gov>
Fri, 15 Feb 2019 20:37:20 +0000 (12:37 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 15 Feb 2019 20:37:20 +0000 (12:37 -0800)
commite73ab1b38cd099f3416eed0ab5576639383bbdcc
treefae3550e9b449d2601da9153e695f54cba89c352
parent2d76ab9e422286b4e97fbd014a2efb05804d4181
Linux 4.20 compat: Fix VERIFY(RW_READ_HELD(&hash->mh_contents))

The 4.20 kernel changed the meaning of the rw_semaphore.owner bits,
causing an assertion when loading the module under the 4.20 kernel.
This patch fixes the issue.

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8360
Closes #8389
include/spl/sys/rwlock.h