From 643eada5f663e85076f06cfcdbdddf2cc028cc2f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 24 Jun 2010 09:39:27 -0700 Subject: [PATCH] Disable zero-copy in zpios We need to update this code to use the new API. For now simply comment it out until it can be correctly implemented. --- module/zpios/zpios.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/zpios/zpios.c b/module/zpios/zpios.c index ff2db3b39b..9aa3b5c1bb 100644 --- a/module/zpios/zpios.c +++ b/module/zpios/zpios.c @@ -443,7 +443,7 @@ zpios_dmu_write(run_args_t *run_args, objset_t *os, uint64_t object, { struct dmu_tx *tx; int rc, how = TXG_WAIT; - int flags = 0; +// int flags = 0; if (run_args->flags & DMU_WRITE_NOWAIT) how = TXG_NOWAIT; @@ -467,10 +467,10 @@ zpios_dmu_write(run_args_t *run_args, objset_t *os, uint64_t object, break; } - if (run_args->flags & DMU_WRITE_ZC) - flags |= DMU_WRITE_ZEROCOPY; +// if (run_args->flags & DMU_WRITE_ZC) +// flags |= DMU_WRITE_ZEROCOPY; - dmu_write_impl(os, object, offset, size, buf, tx, flags); + dmu_write(os, object, offset, size, buf, tx); dmu_tx_commit(tx); return 0; @@ -482,8 +482,8 @@ zpios_dmu_read(run_args_t *run_args, objset_t *os, uint64_t object, { int flags = 0; - if (run_args->flags & DMU_READ_ZC) - flags |= DMU_READ_ZEROCOPY; +// if (run_args->flags & DMU_READ_ZC) +// flags |= DMU_READ_ZEROCOPY; if (run_args->flags & DMU_READ_NOPF) flags |= DMU_READ_NO_PREFETCH;