[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1444916.1650549738@warthog.procyon.org.uk>
Date: Thu, 21 Apr 2022 15:02:18 +0100
From: David Howells <dhowells@...hat.com>
To: Jeffle Xu <jefflexu@...ux.alibaba.com>
Cc: dhowells@...hat.com, linux-cachefs@...hat.com, xiang@...nel.org,
chao@...nel.org, linux-erofs@...ts.ozlabs.org,
torvalds@...ux-foundation.org, gregkh@...uxfoundation.org,
willy@...radead.org, linux-fsdevel@...r.kernel.org,
joseph.qi@...ux.alibaba.com, bo.liu@...ux.alibaba.com,
tao.peng@...ux.alibaba.com, gerry@...ux.alibaba.com,
eguan@...ux.alibaba.com, linux-kernel@...r.kernel.org,
luodaowen.backend@...edance.com, tianzichen@...ishou.com,
fannaihao@...du.com, zhangjiachen.jaycee@...edance.com
Subject: Re: [PATCH v9 03/21] cachefiles: unbind cachefiles gracefully in on-demand mode
Jeffle Xu <jefflexu@...ux.alibaba.com> wrote:
> + struct kref unbind_pincount;/* refcount to do daemon unbind */
Please use refcount_t or atomic_t, especially as this isn't the refcount for
the structure.
> - cachefiles_daemon_unbind(cache);
> -
> /* clean up the control file interface */
> cache->cachefilesd = NULL;
> file->private_data = NULL;
> cachefiles_open = 0;
Please call cachefiles_daemon_unbind() before the cleanup.
David
Powered by blists - more mailing lists