]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: stuff the fl_owner into "pid" field in the lock request
authorJeff Layton <jlayton@poochiereds.net>
Tue, 24 May 2016 10:27:44 +0000 (06:27 -0400)
committerSteve French <smfrench@gmail.com>
Fri, 24 Jun 2016 04:44:44 +0000 (23:44 -0500)
commit84ba63473cff4b29d018170169e1cb459ab6afff
treec72abbba49e16521c490a8981282dc5919eee402
parente0d55d1cbdff5c61230f6163be000ff592878f6b
cifs: stuff the fl_owner into "pid" field in the lock request

Right now, we send the tgid cross the wire. What we really want to send
though is a hashed fl_owner_t since samba treats this field as a generic
lockowner.

It turns out that because we enforce and release locks locally before
they are ever sent to the server, this patch makes no difference in
behavior. Still, setting OFD locks on the server using the process
pid seems wrong, so I think this patch still makes sense.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Pavel Shilovsky <pshilovsky@samba.org>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c