Revert "CIFS: Fix write after setting a read lock for read oplock files"
authorPavel Shilovsky <piastry@etersoft.ru>
Fri, 21 Dec 2012 11:05:47 +0000 (15:05 +0400)
committerSteve French <smfrench@gmail.com>
Wed, 2 Jan 2013 04:59:55 +0000 (22:59 -0600)
commitca8aa29c60238720af2ca2a5caab25fa0c70067e
treecc5940d0c0acaa31b19793b456423764ac97afe0
parent31efee60f489c759c341454d755a9fd13de8c03d
Revert "CIFS: Fix write after setting a read lock for read oplock files"

that solution has data races and can end up two identical writes to the
server: when clientCanCacheAll value can be changed during the execution
of __generic_file_aio_write.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c