[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    Re: [Libguestfs] [PATCH nbdkit] server/locks: Allow lock_request to be called when there is no curre
From:       "Richard W.M. Jones" <rjones () redhat ! com>
Date:       2020-04-28 17:48:29
Message-ID: 20200428174829.GN3888 () redhat ! com
[Download RAW message or body]

On Tue, Apr 28, 2020 at 12:29:47PM -0500, Eric Blake wrote:
> On 4/28/20 11:45 AM, Richard W.M. Jones wrote:
> >On Haiku tests/test-socket-activation failed with:
> >
> >nbdkit: locks.c:96:lock_request: conn != NULL
> >
> >called from server/sockets.c: accept_connection
> >in the fallback path which does:
> >   lock_request ();
> >   thread_data->sock = set_cloexec (accept (listen_sock, NULL, NULL));
> >   unlock_request ()
> >
> >Because there is no current connection in this thread this code fails.
> >
> >However it should be possible to call lock_request without a
> >connection, provided that
> >thread_model <= NBDKIT_THREAD_MODEL_SERIALIZE_REQUESTS (which it is
> >when the fallback path is engaged on Haiku).  There was a regression
> >caused when I modified to code to use an implicit TLS connection.
> >
> >Fixes commit 91023f269d4cea56f573a1aa0d880b12052f6e1e.
> >---
> >  server/locks.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> ACK

Thanks - I tidied up the commit message a bit when I pushed it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic