From 37653efdc7681d1b0f255054ec2f9c9ddd4c8b14 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 4 Jan 2019 07:04:50 +0000 Subject: Revert "iobuf: Get rid of pre allocated iobuf_pool and use per thread mem pool" This reverts commit b87c397091bac6a4a6dec4e45a7671fad4a11770. There seems to be some performance regression with the patch and hence recommended to have it reverted. Updates: #325 Change-Id: Id85d6203173a44fad6cf51d39b3e96f37afcec09 --- xlators/mount/fuse/src/fuse-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index d81db2e8c75..b522cefb09d 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -5820,7 +5820,8 @@ fuse_thread_proc(void *data) THIS = this; iov_in[0].iov_len = sizeof(*finh) + sizeof(struct fuse_write_in); - iov_in[1].iov_len = GF_IOBUF_DEFAULT_PAGE_SIZE; + iov_in[1].iov_len = ((struct iobuf_pool *)this->ctx->iobuf_pool) + ->default_page_size; priv->msg0_len_p = &iov_in[0].iov_len; for (;;) { -- cgit