From: Vivek Goyal <vgoyal@redhat.com>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: virtio-fs@redhat.com
Subject: Re: [Virtio-fs] [PATCH V2] virtiofsd: Support remote posix locks
Date: Mon, 10 Jun 2019 15:10:59 -0400 [thread overview]
Message-ID: <20190610191059.GC29869@redhat.com> (raw)
In-Reply-To: <20190610190025.GH22439@work-vm>
On Mon, Jun 10, 2019 at 08:00:26PM +0100, Dr. David Alan Gilbert wrote:
[..]
> > struct lo_map_elem {
> > union {
> > struct lo_inode *inode;
> > @@ -86,6 +92,8 @@ struct lo_inode {
> > struct lo_key key;
> > uint64_t refcount; /* protected by lo->mutex */
> > fuse_ino_t fuse_ino;
> > + pthread_mutex_t plock_mutex;
> > + GHashTable *posix_locks; /* protected by lo_inode->plock_mutex */
> > };
> >
> > struct lo_cred {
> > @@ -105,6 +113,7 @@ struct lo_data {
> > int norace;
> > int writeback;
> > int flock;
> > + int posix_lock;
> > int xattr;
> > const char *source;
> > double timeout;
> > @@ -133,6 +142,10 @@ static const struct fuse_opt lo_opts[] =
> > offsetof(struct lo_data, flock), 1 },
> > { "no_flock",
> > offsetof(struct lo_data, flock), 0 },
> > + { "posix_lock",
> > + offsetof(struct lo_data, posix_lock), 0 },
>
> Shouldn't that be 1 ^ ?
>
Good catch. Havind said that, I am wondering why do we need this
"posix_lock" knob given we enable it by default. I guess only place it
could be useful if user wanted to force a certain behavior without knowing
what's the daemon default. Also defaults could change down the line.
I will post V3.
Vivek
prev parent reply other threads:[~2019-06-10 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 19:37 [Virtio-fs] [PATCH V2] virtiofsd: Support remote posix locks Vivek Goyal
2019-06-10 19:00 ` Dr. David Alan Gilbert
2019-06-10 19:10 ` Vivek Goyal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190610191059.GC29869@redhat.com \
--to=vgoyal@redhat.com \
--cc=dgilbert@redhat.com \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.