]> granicus.if.org Git - zfs/commit
Linux 4.7 compat: use iterate_shared for concurrent readdir
authorChunwei Chen <david.chen@osnexus.com>
Wed, 18 May 2016 21:30:20 +0000 (14:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2016 18:09:16 +0000 (11:09 -0700)
commit9baaa7deae45c8556dfd79b2011234da5cb37b3a
tree604c0db0b143616bec811b4c3e724a97effa3333
parente42d46664e81136f3e9b7030fe77f0550e615c3f
Linux 4.7 compat: use iterate_shared for concurrent readdir

Register iterate_shared if it exists so the kernel will used shared
lock and allowing concurrent readdir.

Also, use shared lock when doing llseek with SEEK_DATA or SEEK_HOLE
to allow concurrent seeking.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4664
Closes #4665
config/kernel-vfs-iterate.m4
include/sys/zpl.h
module/zfs/zpl_ctldir.c
module/zfs/zpl_file.c