diff --git a/module/zfs/zio.c b/module/zfs/zio.c index bc5a3c9b709b..9e5340a41c5f 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -52,6 +52,7 @@ #include #include #include +#include /* * ========================================================================== @@ -4608,6 +4609,18 @@ zio_ready(zio_t *zio) zio->io_bp_copy = *bp; #endif + if (zio->io_abd) { + char zioflagstr[256], abdflagstr[256]; + zfs_pretty_zio_flag_bits(zio->io_flags, + zioflagstr, sizeof (zioflagstr)); + zfs_pretty_abd_flag_bits(zio->io_abd->abd_flags, + abdflagstr, sizeof (abdflagstr)); + cmn_err(CE_NOTE, "zio_ready: zio %p type %d flags [%s];" + " abd %p size %08x flags [%s]", + zio, zio->io_type, zioflagstr, + zio->io_abd, zio->io_abd->abd_size, abdflagstr); + } + if (zio->io_error != 0) { zio->io_pipeline = ZIO_INTERLOCK_PIPELINE;