Skip to content

Commit

Permalink
Prevent reclaim in send_traverse_thread()
Browse files Browse the repository at this point in the history
As is the case with traverse_prefetch_thread(), the deep stacks caused
by traversal require disabling reclaim in the send traverse thread.

Fixes: openzfs#4912
  • Loading branch information
dweeezil committed Aug 21, 2016
1 parent 2bce804 commit e0677a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/dmu_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ send_traverse_thread(void *arg)
struct send_thread_arg *st_arg = arg;
int err;
struct send_block_record *data;
fstrans_cookie_t cookie = spl_fstrans_mark();

if (st_arg->ds != NULL) {
err = traverse_dataset_resume(st_arg->ds,
Expand All @@ -585,6 +586,7 @@ send_traverse_thread(void *arg)
data = kmem_zalloc(sizeof (*data), KM_SLEEP);
data->eos_marker = B_TRUE;
bqueue_enqueue(&st_arg->q, data, 1);
spl_fstrans_unmark(cookie);
}

/*
Expand Down

0 comments on commit e0677a7

Please sign in to comment.