smbd: Always open files with O_NONBLOCK
authorVolker Lendecke <vl@samba.org>
Mon, 29 Jul 2019 18:45:51 +0000 (20:45 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 30 Jul 2019 22:37:26 +0000 (22:37 +0000)
commitef582ffcf3a220b73f678d9bce0fd37800f76c54
tree6dd164f50e7be3ea85d536d7aa6e384655c5840c
parent57695ad44bf10d6ae1dc466551358bd826dac923
smbd: Always open files with O_NONBLOCK

It's perfectly possible that someone else takes a kernel oplock and
makes us block, independent of our own kernel oplock setting.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14060
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c