cifs: remove the retry in cifs_poxis_lock_set
authoryangerkun <yangerkun@huawei.com>
Thu, 2 Jul 2020 07:25:26 +0000 (15:25 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 8 Jul 2020 04:51:16 +0000 (23:51 -0500)
commit2e98c01846b2ce96cc41f60b70fd03cd47d3ac77
treee2139fe36e0c6886f668e31aa4e008be1547eee3
parent4ef9b4f1a76ea2370fbfe20e80fef141ab92b65e
cifs: remove the retry in cifs_poxis_lock_set

The caller of cifs_posix_lock_set will do retry(like
fcntl_setlk64->do_lock_file_wait) if we will wait for any file_lock.
So the retry in cifs_poxis_lock_set seems duplicated, remove it to
make a cleanup.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: NeilBrown <neilb@suse.de>
fs/cifs/file.c