]> git.proxmox.com Git - mirror_spl-debian.git/commit
Switch KM_SLEEP to KM_PUSHPAGE
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Aug 2012 22:36:28 +0000 (15:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Aug 2012 19:00:55 +0000 (12:00 -0700)
commitcd5ca4b2f86a606aa6ed68341a3672fdde1c9856
treeb5e199851176895ea5adb347103e5f5f61d22eb2
parent3e904f40b4f24db61798ca8c8a9027731cf2ced6
Switch KM_SLEEP to KM_PUSHPAGE

Under certain circumstances the following functions may be called
in a context where KM_SLEEP is unsafe and can result in a deadlocked
system.  To avoid this problem the unconditional KM_SLEEPs are
converted to KM_PUSHPAGEs.  This will prevent them from attempting
to initiate any I/O during direct reclaim.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/taskq.h
module/spl/spl-taskq.c
module/spl/spl-thread.c