diff options
author | Tim Chase <[email protected]> | 2015-08-27 14:50:39 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-08-30 10:04:56 -0700 |
commit | 36b454ab4c33fef59c9cb25ff09c2454dcd4aa04 (patch) | |
tree | ee81c36b26e48937d7d87eb6c8c61ba020cfab0d /module/zfs/vdev_queue.c | |
parent | bba365cfc810161cf63b6e07100b7a6bd082ee6d (diff) |
Initialize the taskq entry embedded within struct vdev
As part of the stack reduction effort in
50b25b2187134ac7b19cf93bd35a420223f1d343, a zio_t containing a taskq_ent
was added to struct vdev_queue which itself is part of struct vdev.
The taskq entry should be initialized as is currently done in zio_create()
for newly-created bare zio_t object. The rationale is the same as is
described in f467b05a265abcfb8e5a3269f79d08f36a58646a.
Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3709
Diffstat (limited to 'module/zfs/vdev_queue.c')
-rw-r--r-- | module/zfs/vdev_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/vdev_queue.c b/module/zfs/vdev_queue.c index a0d6fc4e3..fe3dc7ac0 100644 --- a/module/zfs/vdev_queue.c +++ b/module/zfs/vdev_queue.c @@ -348,6 +348,7 @@ vdev_queue_init(vdev_t *vd) mutex_init(&vq->vq_lock, NULL, MUTEX_DEFAULT, NULL); vq->vq_vdev = vd; + taskq_init_ent(&vd->vdev_queue.vq_io_search.io_tqent); avl_create(&vq->vq_active_tree, vdev_queue_offset_compare, sizeof (zio_t), offsetof(struct zio, io_queue_node)); |