diff options
| author | Vivek Goyal | 2020-12-07 19:30:20 +0100 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2020-12-18 11:08:24 +0100 |
| commit | e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c (patch) | |
| tree | d19dba1a2e8311800271e87ac37c5e77fa3ebcff /blockdev.c | |
| parent | virtiofsd: Set up posix_lock hash table for root inode (diff) | |
| download | qemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.tar.gz qemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.tar.xz qemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.zip | |
virtiofsd: Disable posix_lock hash table if remote locks are not enabled
If remote posix locks are not enabled (lo->posix_lock == false), then disable
code paths taken to initialize inode->posix_lock hash table and corresponding
destruction and search etc.
lo_getlk() and lo_setlk() have been modified to return ENOSYS if daemon
does not support posix lock but client still sends a lock/unlock request.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <20201207183021.22752-3-vgoyal@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions
