s3-aio: Use correct locking context for SMB2
commit53bdc43bdf3220519d96cd56e8b4811c24a49515
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:02:56 +0000 (10 13:02 +0100)
tree3c1b6506a960374f3a0940d17751e5c5a488bd6e
parent723d74ff63e0397735013326df93354533db5606
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