zio_impl.h revision b24ab6762772a3f6a89393947930c7fa61306783
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ZIO_IMPL_H
#define _ZIO_IMPL_H
#include <sys/zfs_context.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* zio pipeline stage definitions
*/
enum zio_stage {
};
#define ZIO_INTERLOCK_STAGES \
(ZIO_STAGE_READY | \
#define ZIO_INTERLOCK_PIPELINE \
#define ZIO_VDEV_IO_STAGES \
#define ZIO_VDEV_CHILD_PIPELINE \
(ZIO_VDEV_IO_STAGES | \
#define ZIO_READ_COMMON_STAGES \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_READ_PHYS_PIPELINE \
#define ZIO_READ_PIPELINE \
#define ZIO_DDT_CHILD_READ_PIPELINE \
#define ZIO_DDT_READ_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_WRITE_COMMON_STAGES \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_WRITE_PHYS_PIPELINE \
#define ZIO_REWRITE_PIPELINE \
#define ZIO_WRITE_PIPELINE \
#define ZIO_DDT_CHILD_WRITE_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_DDT_WRITE_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_GANG_STAGES \
#define ZIO_FREE_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_DDT_FREE_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_CLAIM_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_IOCTL_PIPELINE \
(ZIO_INTERLOCK_STAGES | \
#define ZIO_BLOCKING_STAGES \
extern void zio_inject_init(void);
extern void zio_inject_fini(void);
#ifdef __cplusplus
}
#endif
#endif /* _ZIO_IMPL_H */