The x_vc_data->shared.ioq.qmutex doesn't be initialized before using it, fix it in alloc_x_vc_data().
Signed-off-by: Yijing Wang <[email protected]> --- src/clnt_internal.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/clnt_internal.h b/src/clnt_internal.h index f18650a..118aad7 100644 --- a/src/clnt_internal.h +++ b/src/clnt_internal.h @@ -252,13 +252,14 @@ static inline struct x_vc_data * alloc_x_vc_data(void) { struct x_vc_data *xd = mem_zalloc(sizeof(struct x_vc_data)); - TAILQ_INIT(&xd->shared.ioq.qh); + poolq_head_setup(&xd->shared.ioq); return (xd); } static inline void free_x_vc_data(struct x_vc_data *xd) { + poolq_head_destroy(&xd->shared.ioq); mem_free(xd, sizeof(struct x_vc_data)); } -- 1.7.1 ------------------------------------------------------------------------------ _______________________________________________ Nfs-ganesha-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
