xio_rdma_primary_pool_alloc

Bug #1308465 reported by xuejiaolong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Accelio
Fix Committed
Undecided
Shlomo Pongratz

Bug Description

Is there something was wrong in function xio_rdma_primary_pool_alloc ? each xio_conn has a primary_task_pool,but same const string "primary_pool" was passed to kmem_cache_create.it will get a duplicate error.

static int xio_rdma_primary_pool_alloc(
                struct xio_transport_base *transport_hndl,
                int max, void *pool_dd_data)
{
        struct xio_rdma_transport *rdma_hndl =
                (struct xio_rdma_transport *)transport_hndl;
        struct xio_rdma_tasks_pool *rdma_pool =
                (struct xio_rdma_tasks_pool *)pool_dd_data;

        rdma_pool->buf_size = rdma_hndl->membuf_sz;
        rdma_pool->data_pool = kmem_cache_create("primary_pool",
                                                 rdma_pool->buf_size, PAGE_SIZE,
                                                 SLAB_HWCACHE_ALIGN, NULL);
        if (!rdma_pool->data_pool) {
                xio_set_error(ENOMEM);
                ERROR_LOG("kcache(primary_pool) creation failed\n");
                return -1;
        }

Revision history for this message
Shlomo Pongratz (shlomop) wrote :

Fixed
Patch df31b00 branch for_next

Changed in accelio:
assignee: nobody → Shlomo Pongratz (shlomop)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.