usr/src/uts/common/fs/zfs/zio.c
changeset 9722 e3866bad4e96
parent 9470 6d827468d7b5
child 9725 0bf7402e8022
equal deleted inserted replaced
9721:4f7e194c7c37 9722:e3866bad4e96
   940 zio_taskq_dispatch(zio_t *zio, enum zio_taskq_type q)
   940 zio_taskq_dispatch(zio_t *zio, enum zio_taskq_type q)
   941 {
   941 {
   942 	zio_type_t t = zio->io_type;
   942 	zio_type_t t = zio->io_type;
   943 
   943 
   944 	/*
   944 	/*
   945 	 * If we're a config writer, the normal issue and interrupt threads
   945 	 * If we're a config writer or a probe, the normal issue and
   946 	 * may all be blocked waiting for the config lock.  In this case,
   946 	 * interrupt threads may all be blocked waiting for the config lock.
   947 	 * select the otherwise-unused taskq for ZIO_TYPE_NULL.
   947 	 * In this case, select the otherwise-unused taskq for ZIO_TYPE_NULL.
   948 	 */
   948 	 */
   949 	if (zio->io_flags & ZIO_FLAG_CONFIG_WRITER)
   949 	if (zio->io_flags & (ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_PROBE))
   950 		t = ZIO_TYPE_NULL;
   950 		t = ZIO_TYPE_NULL;
   951 
   951 
   952 	/*
   952 	/*
   953 	 * A similar issue exists for the L2ARC write thread until L2ARC 2.0.
   953 	 * A similar issue exists for the L2ARC write thread until L2ARC 2.0.
   954 	 */
   954 	 */