Thread (1 message) 1 message, 1 author, 2017-02-13

Re: [RFC][PATCH] nfsd: add +1 to reference counting scheme for struct nfsd4_session

From: Christoph Hellwig <hidden>
Date: 2017-02-13 10:38:15
Also in: linux-nfs

On Sat, Feb 11, 2017 at 09:01:15AM -0500, David Windsor wrote:
I'm not sure there's another way to accomplish what we need
(initializing struct nfsd4_session objects with refcount=1) without
also modifying the freeable reference state.  After migrating to the
refcount_t API, if we leave init_session() as is, the first call to
nfsd4_get_session_locked() will fail:
Which is a pretty clear indicator that this code should simply not
migrate to the recount_t API.  Why was it even considered if the
conversion is obviously broken?
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help