When writes to zvols invoke ZIL, zfs_range_new_proxy() is called,
which allocates memory using KM_SLEEP, triggering a warning.
Switch to KM_PUSHPAGE to silence that warning. See commit
b8d06fca089fae4680c3a552fc55c512bfb02202 for additional details.
Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1138
rl_t *rl;
ASSERT(len);
- rl = kmem_alloc(sizeof (rl_t), KM_SLEEP);
+ rl = kmem_alloc(sizeof (rl_t), KM_PUSHPAGE);
rl->r_off = off;
rl->r_len = len;
rl->r_cnt = 1;