Skip to content

Commit

Permalink
Initialize the taskq entry embedded within struct vdev
Browse files Browse the repository at this point in the history
As part of the stack reduction effort in
50b25b2, 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 f467b05.

Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#3709
  • Loading branch information
dweeezil authored and behlendorf committed Aug 30, 2015
1 parent bba365c commit 36b454a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/zfs/vdev_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 36b454a

Please sign in to comment.