From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 3 May 2019 11:22:49 -0400 From: Vivek Goyal Message-ID: <20190503152249.GA8014@redhat.com> References: <20190416180322.65113-1-bo.liu@linux.alibaba.com> <20190416180322.65113-10-bo.liu@linux.alibaba.com> <20190416180756.GA2222@redhat.com> <20190502221014.b2k352rb5zleadxo@US-160370MP2.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190502221014.b2k352rb5zleadxo@US-160370MP2.local> Subject: Re: [Virtio-fs] [PATCH 9/9] fuse: fix deadlock in __fuse_file_fallocate() List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Bo Cc: virtio-fs@redhat.com Hi Liu Bo, Thanks. I fixed it now. Check it out. This change was part of my 5.1-rc rebase (and not 4.19 rebase). Thanks Vivek On Thu, May 02, 2019 at 03:10:15PM -0700, Liu Bo wrote: > On Tue, Apr 16, 2019 at 02:07:56PM -0400, Vivek Goyal wrote: > > On Wed, Apr 17, 2019 at 02:03:22AM +0800, Liu Bo wrote: > > > From: Xiaoguang Wang > > > > > > This bug is obvious, fix it. > > > > > > Reviewed-by: Joseph Qi > > > Signed-off-by: Xiaoguang Wang > > > > Thanks. This one I ran into late last week while testing > > fallocate(PUNCH_HOLE) and fixed it already in my internal branch. > > Hi Vivek, > > FYI, the bug still exists in > https://github.com/rhvgoyal/linux/tree/virtio-fs-4.19.28 > > thanks, > -liubo > > > > > Vivek > > > --- > > > fs/fuse/file.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/fs/fuse/file.c b/fs/fuse/file.c > > > index 6ab23d7..0236783 100644 > > > --- a/fs/fuse/file.c > > > +++ b/fs/fuse/file.c > > > @@ -3623,7 +3623,7 @@ static long __fuse_file_fallocate(struct file *file, int mode, > > > if (mode & FALLOC_FL_PUNCH_HOLE) { > > > down_write(&fi->i_mmap_sem); > > > truncate_pagecache_range(inode, offset, offset + length - 1); > > > - down_write(&fi->i_mmap_sem); > > > + up_write(&fi->i_mmap_sem); > > > } > > > fuse_invalidate_attr(inode); > > > > > > -- > > > 1.8.3.1 > > > > > > _______________________________________________ > > > Virtio-fs mailing list > > > Virtio-fs@redhat.com > > > https://www.redhat.com/mailman/listinfo/virtio-fs