s3:blocking: fix posix lock retry
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2019 12:21:38 +0000 (14:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Sep 2019 14:23:39 +0000 (14:23 +0000)
commite8d719d31f885d7b6d5b317165f90ec40df169c9
tree60d1bbf2e1deb5a2d382fe70cca01ebd50678bd0
parent8fe708acb43ea36d0cbf398713b125daba180a2d
s3:blocking: fix posix lock retry

We should evaluate the timeout condition after the very last
retry and not before.

Otherwise we'd fail to retry when waiting for posix locks.
The problem happens if the client provided timeout is smaller
than the 1 sec (for testing temporary 15 secs) retry.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/knownfail.d/lock9 [deleted file]
source3/smbd/blocking.c