diff options
author | Brian Behlendorf <[email protected]> | 2015-01-16 14:42:46 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-01-16 14:58:46 -0800 |
commit | 6e9710f7c33a7440904b39fb4e6b68b3325cfeca (patch) | |
tree | f4b2a6557308bea2cc3d851e728d1a4585dc4427 /include/sys/zio.h | |
parent | d958324f97f4668a2a6e4a6ce3e5ca09b71b31d9 (diff) | |
parent | 81971b137ada2097ed73a4364cb896a99d71f578 (diff) |
Merge branch 'kmem-rework'
The core motivation behind these changes is to minimize the
memory management differences between ZFS on Linux and other
platforms. This simplifies the process of porting changes to
Linux from other platforms. This is good for code quality
and is expected to reduce the number of defects accidentally
introduced due to porting. The following key Linux specific
changes have been reverted.
* KM_PUSHPAGE changed back to KM_SLEEP. All contexts where
it is unsafe to perform IO have been marked with PF_FSTRANS.
This context specific mechanism is now used exclusively
and the KM_PUSHPAGE mechanism has been retired.
* The KM_NODEBUG flag has been retired. Allocations larger
than 32K should use vmem_alloc()/vmem_free(). Depending
on the size of the allocation either kmalloc() or vmalloc()
will be used internally, but no warning will be printed.
* Pre-allocated vdev IO buffers and the dedicated SA spill
block cache have been retired. It is now safe and reliable
to allocate buffers of the needed size without fear of
deadlocking. This reduces our memory footprint and paves
the way for larger block sizes.
Depends on zfsonlinux/spl#414.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Closes #2918
Diffstat (limited to 'include/sys/zio.h')
-rw-r--r-- | include/sys/zio.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sys/zio.h b/include/sys/zio.h index e10e965e6..18e7a40a3 100644 --- a/include/sys/zio.h +++ b/include/sys/zio.h @@ -522,8 +522,6 @@ extern void *zio_buf_alloc(size_t size); extern void zio_buf_free(void *buf, size_t size); extern void *zio_data_buf_alloc(size_t size); extern void zio_data_buf_free(void *buf, size_t size); -extern void *zio_vdev_alloc(void); -extern void zio_vdev_free(void *buf); extern void zio_resubmit_stage_async(void *); |