diff options
author | Marc Dionne <marc.dionne@auristor.com> | 2019-01-09 20:23:54 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-01-10 20:12:05 +0300 |
commit | 5edc22cc1d33d6a88d175d25adc38d2a5cee134d (patch) | |
tree | 55d66da44f623af39dcb5a12c3de1c5f398c5126 /tools/memory-model | |
parent | c2b8bd49d35a768d3966c5e14e8f6971f2a63439 (diff) | |
download | linux-5edc22cc1d33d6a88d175d25adc38d2a5cee134d.tar.xz |
afs: Set correct lock type for the yfs CreateFile
A lock type of 0 is "LockRead", which makes the fileserver record an
unintentional read lock on the new file. This will cause problems
later on if the file is the subject of locking operations.
The correct default value should be -1 ("LockNone").
Fix the operation marshalling code to set the value and provide an enum to
symbolise the values whilst we're at it.
Fixes: 30062bd13e36 ("afs: Implement YFS support in the fs client")
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'tools/memory-model')
0 files changed, 0 insertions, 0 deletions