diff options
author | Richard Yao <[email protected]> | 2012-12-08 08:38:13 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-12-10 09:44:45 -0800 |
commit | e4d89e9cfc605dc59df57d89818868e033e59cfb (patch) | |
tree | 104e0c3312fc21311221c457ee1ea7ac22371f66 /module/zfs/zfs_rlock.c | |
parent | 53c7411919a64d6f0889aa0d6974610f6cd35744 (diff) |
Switch KM_SLEEP to KM_PUSHPAGE
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1138
Diffstat (limited to 'module/zfs/zfs_rlock.c')
-rw-r--r-- | module/zfs/zfs_rlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_rlock.c b/module/zfs/zfs_rlock.c index c278035b1..325d5aae5 100644 --- a/module/zfs/zfs_rlock.c +++ b/module/zfs/zfs_rlock.c @@ -253,7 +253,7 @@ zfs_range_new_proxy(avl_tree_t *tree, uint64_t off, uint64_t len) 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; |