Re: [Virtio-fs] [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-06 Thread Vivek Goyal
On Wed, Oct 06, 2021 at 05:34:59PM +0200, Christophe de Dinechin wrote: > > On 2021-09-30 at 11:30 -04, Vivek Goyal wrote... > > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > > -EOPNOTSUPP. > > > > Change that by accepting these requests and returning a reply > > immed

Re: [Virtio-fs] [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-06 Thread Christophe de Dinechin
On 2021-09-30 at 11:30 -04, Vivek Goyal wrote... > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > -EOPNOTSUPP. > > Change that by accepting these requests and returning a reply > immediately asking caller to wait. Once lock is available, send a > notification to the wa

Re: [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-05 Thread Stefan Hajnoczi
On Tue, Oct 05, 2021 at 11:14:19AM -0400, Vivek Goyal wrote: > On Tue, Oct 05, 2021 at 01:22:21PM +0100, Stefan Hajnoczi wrote: > > On Thu, Sep 30, 2021 at 11:30:36AM -0400, Vivek Goyal wrote: > > > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > > > -EOPNOTSUPP. > > > >

Re: [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-05 Thread Vivek Goyal
On Tue, Oct 05, 2021 at 01:22:21PM +0100, Stefan Hajnoczi wrote: > On Thu, Sep 30, 2021 at 11:30:36AM -0400, Vivek Goyal wrote: > > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > > -EOPNOTSUPP. > > > > Change that by accepting these requests and returning a reply > > imm

Re: [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-05 Thread Vivek Goyal
On Mon, Oct 04, 2021 at 04:07:04PM +0100, Stefan Hajnoczi wrote: > On Thu, Sep 30, 2021 at 11:30:36AM -0400, Vivek Goyal wrote: > > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > > -EOPNOTSUPP. > > > > Change that by accepting these requests and returning a reply > > imm

Re: [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-05 Thread Stefan Hajnoczi
On Thu, Sep 30, 2021 at 11:30:36AM -0400, Vivek Goyal wrote: > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > -EOPNOTSUPP. > > Change that by accepting these requests and returning a reply > immediately asking caller to wait. Once lock is available, send a > notification

Re: [PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-10-04 Thread Stefan Hajnoczi
On Thu, Sep 30, 2021 at 11:30:36AM -0400, Vivek Goyal wrote: > As of now we don't support fcntl(F_SETLKW) and if we see one, we return > -EOPNOTSUPP. > > Change that by accepting these requests and returning a reply > immediately asking caller to wait. Once lock is available, send a > notification

[PATCH 12/13] virtiofsd: Implement blocking posix locks

2021-09-30 Thread Vivek Goyal
As of now we don't support fcntl(F_SETLKW) and if we see one, we return -EOPNOTSUPP. Change that by accepting these requests and returning a reply immediately asking caller to wait. Once lock is available, send a notification to the waiter indicating lock is available. In response to lock request