Switch KM_SLEEP to KM_PUSHPAGE
authorRichard Yao <ryao@cs.stonybrook.edu>
Sat, 8 Dec 2012 13:38:13 +0000 (08:38 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Dec 2012 17:44:45 +0000 (09:44 -0800)
commite4d89e9cfc605dc59df57d89818868e033e59cfb
tree104e0c3312fc21311221c457ee1ea7ac22371f66
parent53c7411919a64d6f0889aa0d6974610f6cd35744
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 <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1138
module/zfs/zfs_rlock.c