sched.c (363e065c02b1273364d5356711a83e7f548fc0c8) sched.c (1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b)
1/*
2 * linux/net/sunrpc/sched.c
3 *
4 * Scheduling for synchronous and asynchronous RPC requests.
5 *
6 * Copyright (C) 1996 Olaf Kirch, <okir@monad.swb.de>
7 *
8 * TCP NFS related read + write fixes

--- 1045 unchanged lines hidden (view full) ---

1054
1055void
1056rpc_destroy_mempool(void)
1057{
1058 if (rpc_buffer_mempool)
1059 mempool_destroy(rpc_buffer_mempool);
1060 if (rpc_task_mempool)
1061 mempool_destroy(rpc_task_mempool);
1/*
2 * linux/net/sunrpc/sched.c
3 *
4 * Scheduling for synchronous and asynchronous RPC requests.
5 *
6 * Copyright (C) 1996 Olaf Kirch, <okir@monad.swb.de>
7 *
8 * TCP NFS related read + write fixes

--- 1045 unchanged lines hidden (view full) ---

1054
1055void
1056rpc_destroy_mempool(void)
1057{
1058 if (rpc_buffer_mempool)
1059 mempool_destroy(rpc_buffer_mempool);
1060 if (rpc_task_mempool)
1061 mempool_destroy(rpc_task_mempool);
1062 if (rpc_task_slabp && kmem_cache_destroy(rpc_task_slabp))
1063 printk(KERN_INFO "rpc_task: not all structures were freed\n");
1064 if (rpc_buffer_slabp && kmem_cache_destroy(rpc_buffer_slabp))
1065 printk(KERN_INFO "rpc_buffers: not all structures were freed\n");
1062 if (rpc_task_slabp)
1063 kmem_cache_destroy(rpc_task_slabp);
1064 if (rpc_buffer_slabp)
1065 kmem_cache_destroy(rpc_buffer_slabp);
1066}
1067
1068int
1069rpc_init_mempool(void)
1070{
1071 rpc_task_slabp = kmem_cache_create("rpc_tasks",
1072 sizeof(struct rpc_task),
1073 0, SLAB_HWCACHE_ALIGN,

--- 22 unchanged lines hidden ---
1066}
1067
1068int
1069rpc_init_mempool(void)
1070{
1071 rpc_task_slabp = kmem_cache_create("rpc_tasks",
1072 sizeof(struct rpc_task),
1073 0, SLAB_HWCACHE_ALIGN,

--- 22 unchanged lines hidden ---