diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-11-22 15:56:39 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 20:27:29 +0100 |
commit | 21cb2d90c76cbc951da3a266f0dd439d64f3114a (patch) | |
tree | b38829c87f5be4c9da6c2bfdb11fd5a7ec4e98fb /fs/cifs/connect.c | |
parent | CIFS: Implement cifs_relock_file (diff) | |
download | linux-21cb2d90c76cbc951da3a266f0dd439d64f3114a.tar.xz linux-21cb2d90c76cbc951da3a266f0dd439d64f3114a.zip |
CIFS: Fix lock consistensy bug in cifs_setlk
If we netogiate mandatory locking style, have a read lock and try
to set a write lock we end up with a write lock in vfs cache and
no lock in cifs lock cache - that's wrong. Fix it by returning
from cifs_setlk immediately if a error occurs during setting a lock.
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions