[Virtio-fs] [PATCH 3/9] fuse: export fuse_drop_waiting()

Liu Bo bo.liu at linux.alibaba.com
Tue Apr 16 18:43:57 UTC 2019


On Tue, Apr 16, 2019 at 02:28:49PM -0400, Vivek Goyal wrote:
> On Wed, Apr 17, 2019 at 02:03:16AM +0800, Liu Bo wrote:
> > virtio-fs will need to do ref count against FORGET requests from
> > outside fs/fuse/dev.c.  Make the symbol visible.
> > 
> 
> Who needs it? virtio-fs does not seem to be calling it?
>

Ah, this is a preparation for patch 4.

thanks,
-liubo

> Vivek
> 
> > Reviewed-by: Liu Bo <bo.liu at linux.alibaba.com>
> > Reviewed-by: Joseph Qi <joseph.qi at linux.alibaba.com>
> > Signed-off-by: Xiaoguang Wang <xiaoguang.wang at linux.alibaba.com>
> > ---
> >  fs/fuse/dev.c    | 3 ++-
> >  fs/fuse/fuse_i.h | 1 +
> >  2 files changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
> > index 07ae706..7e6afd0 100644
> > --- a/fs/fuse/dev.c
> > +++ b/fs/fuse/dev.c
> > @@ -128,7 +128,7 @@ static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background)
> >  	return !fc->initialized || (for_background && fc->blocked);
> >  }
> >  
> > -static void fuse_drop_waiting(struct fuse_conn *fc)
> > +void fuse_drop_waiting(struct fuse_conn *fc)
> >  {
> >  	if (fc->connected) {
> >  		atomic_dec(&fc->num_waiting);
> > @@ -137,6 +137,7 @@ static void fuse_drop_waiting(struct fuse_conn *fc)
> >  		wake_up_all(&fc->blocked_waitq);
> >  	}
> >  }
> > +EXPORT_SYMBOL_GPL(fuse_drop_waiting);
> >  
> >  static struct fuse_req *__fuse_get_req(struct fuse_conn *fc, unsigned npages,
> >  				       bool for_background)
> > diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
> > index 2c32846..171aee8 100644
> > --- a/fs/fuse/fuse_i.h
> > +++ b/fs/fuse/fuse_i.h
> > @@ -1199,6 +1199,7 @@ ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value,
> >   * Get the next unique ID for a request
> >   */
> >  u64 fuse_get_unique(struct fuse_iqueue *fiq);
> > +void fuse_drop_waiting(struct fuse_conn *fc);
> >  void fuse_dax_free_mem_worker(struct work_struct *work);
> >  void fuse_removemapping(struct inode *inode);
> >  
> > -- 
> > 1.8.3.1
> > 
> > _______________________________________________
> > Virtio-fs mailing list
> > Virtio-fs at redhat.com
> > https://www.redhat.com/mailman/listinfo/virtio-fs




More information about the Virtio-fs mailing list