aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_tpc.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-01-24 15:33:42 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-01-24 15:33:42 +0000
commit71943c3d359adc2450d40abffbcda2ec748c4c86 (patch)
treeddae609e0a73dbc52ddee28df3f976c7dfe19297 /sys/cam/ctl/ctl_tpc.c
parent5faf2ae1601299ad5561e80c9a4647c224aae336 (diff)
downloadsrc-71943c3d359adc2450d40abffbcda2ec748c4c86.tar.gz
src-71943c3d359adc2450d40abffbcda2ec748c4c86.zip
Avoid calling vmspace_free() while owning the process lock. Freeing
of an vm space may require obtaining sleepable locks. Hold the process to keep the pointer valid, and change trylock to lock, since there is no longer two process locks owned simultaneously in vm_pageout_oom(). Note that after the process lock is dropped, process might exec, and no longer qualify as the owner of biggest vm space. In collaboration with: rstone Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=277646
Diffstat (limited to 'sys/cam/ctl/ctl_tpc.c')
0 files changed, 0 insertions, 0 deletions