nfsd: Allow lockowners to hold several stateids
authorJeff Layton <jlayton@primarydata.com>
Mon, 30 Jun 2014 15:48:39 +0000 (11:48 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 10 Jul 2014 00:54:57 +0000 (20:54 -0400)
commitc53530da4dfede2f080129b58a89ef907e5a0dfd
tree2c2e79091c493593290a1a0a041596b24b42ac06
parent3c87b9b7c05d7775a3d942de588296025023c6d2
nfsd: Allow lockowners to hold several stateids

A lockowner can have more than one lock stateid. For instance, if a
process has more than one file open and has locks on both, then the same
lockowner has more than one stateid associated with it. Change it so
that this reality is better reflected by the objects that nfsd uses.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c