Skip to content
Commit 02921914 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix openmode checking on IO using lock stateid



It is legal to perform a write using the lock stateid that was
originally associated with a read lock, or with a file that was
originally opened for read, but has since been upgraded.

So, when checking the openmode, check the mode associated with the
open stateid from which the lock was derived.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 21fb4016
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment