s3-aio: Use correct locking context for SMB2
commitc36bda8872b9a62b64de6f2f5c7486895dc5634c
authorChristof Schmitt <cs@samba.org>
Thu, 5 Dec 2013 22:57:54 +0000 (5 15:57 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 12:00:49 +0000 (10 13:00 +0100)
tree0722439eb35931790a05c73fa8fecd74e0b757ec
parent9c622f082bb983179666263f77b3ecfb08d24915
s3-aio: Use correct locking context for SMB2

The synchronous SMB2 reads and writes use open_persistent_id. The AIO
codepathes have to use the same, otherwise a write will conflict with a
lock on the same open file.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit dfef0701c398982226dde8a8e15ff97bba0fef53)
source3/smbd/aio.c