Re: [Qemu-block] [PATCH for-3.1? v2 2/3] file-posix: Fix shared locks on reopen commit

2018-11-19 Thread Alberto Garcia
On Fri 16 Nov 2018 05:45:25 PM CET, Max Reitz wrote: > s->locked_shared_perm is the set of bits locked in the file, which is > the inverse of the permissions actually shared. So we need to pass them > as they are to raw_apply_lock_bytes() instead of inverting them again. > > Reported-by: Alberto

[Qemu-block] [PATCH for-3.1? v2 2/3] file-posix: Fix shared locks on reopen commit

2018-11-16 Thread Max Reitz
s->locked_shared_perm is the set of bits locked in the file, which is the inverse of the permissions actually shared. So we need to pass them as they are to raw_apply_lock_bytes() instead of inverting them again. Reported-by: Alberto Garcia Signed-off-by: Max Reitz --- block/file-posix.c | 2