diff options
author | zbb <zbb@FreeBSD.org> | 2015-07-21 15:28:07 +0000 |
---|---|---|
committer | zbb <zbb@FreeBSD.org> | 2015-07-21 15:28:07 +0000 |
commit | 34b957f11d926d9a5619892f23c8db72b22f58d3 (patch) | |
tree | def8b1fb7ded8b2d1243a10c93ddfb48bd3b51d0 /contrib/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp | |
parent | 5f08ac18d237b01234affc94c71a78cb1389bf71 (diff) | |
download | FreeBSD-src-34b957f11d926d9a5619892f23c8db72b22f58d3.zip FreeBSD-src-34b957f11d926d9a5619892f23c8db72b22f58d3.tar.gz |
Don't allow malloc() to wait for resource while holding a lock in ITS
malloc() should not go to sleep in case of lack of resource while
the kernel thread is holding a non-sleepable lock.
- change malloc() flags to M_NOWAIT in such cases implement
lpi_free_chunk() routine as it will be needed when ITT
allocation fails in its_device_alloc_locked()
- do not increase verbosity of this code since upper layers will
communicate an error if the interrupt setup fails
Obtained from: Semihalf
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3121
Diffstat (limited to 'contrib/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp')
0 files changed, 0 insertions, 0 deletions