]> granicus.if.org Git - spl/commit
Fixed invalid resource re-use in file_find()
authorGunnar Beutner <gunnar@beutner.name>
Tue, 11 Oct 2011 16:50:52 +0000 (09:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Oct 2011 16:51:51 +0000 (09:51 -0700)
commit763b2f3b57af1febb0fd72c4976992e672a350b4
tree6b200156baaffd6213e47ea2642ea74fc2939495
parent4a777c028c7e52ccfc1fb721448c84e10b9ee0f8
Fixed invalid resource re-use in file_find()

File descriptors are a per-process resource. The same descriptor
in different processes can refer to different files. find_file()
incorrectly assumed that file descriptors are globally unique.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes ZFS issue #386
include/sys/vnode.h
module/spl/spl-vnode.c