diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-10-16 15:45:39 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-10-17 08:30:10 +0200 |
commit | 11e13696a08e838ba48c72404c2b3f41429b5b20 (patch) | |
tree | 7c730b6e28bdb7cb3415e541e2b7283c4e6f0054 /include | |
parent | 0c373344b5c1eaa9e186368a32a169a2802be3ca (diff) | |
download | linux-11e13696a08e838ba48c72404c2b3f41429b5b20.tar.bz2 |
sched/completions/Documentation: Add recommendation for dynamic and ONSTACK completions
To prevent dynamic completion objects from being de-allocated while still
in use, add a recommendation to embed them in long lived data structures.
Also add a note for the on-stack case that emphasizes the dangers of
the limited scope, and recommends dynamic allocation if scope limitations
are not clearly understood.
[ mingo: Minor touch-ups of the text, expanded it a bit to make the
warnings Nicholas added more prominent. ]
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: john.garry@huawei.com
Link: http://lkml.kernel.org/r/1539697539-24055-1-git-send-email-hofrat@osadl.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions