Re: [PATCH 2/3] virtiofsd: Disable posix_lock hash table if remote locks are not enabled

2020-12-10 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > 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 i

[PATCH 2/3] virtiofsd: Disable posix_lock hash table if remote locks are not enabled

2020-12-07 Thread Vivek Goyal
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 sti