virtiofsd: do not always set FUSE_FLOCK_LOCKS
commite468d4af5f5192ab33283464a9f6933044ce47f7
authorPeng Tao <tao.peng@linux.alibaba.com>
Fri, 2 Aug 2019 11:12:23 +0000 (2 19:12 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (23 16:41 +0000)
treece5b30820b7f756be45128a4fd5a91666118085a
parentc241aa9457d88c6a0d027f48fadfed131646bce3
virtiofsd: do not always set FUSE_FLOCK_LOCKS

Right now we always enable it regardless of given commandlines.
Fix it by setting the flag relying on the lo->flock bit.

Signed-off-by: Peng Tao <tao.peng@linux.alibaba.com>
Reviewed-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c