| commit | e58dd0de5eadf145895b13451a1fef8ef03946eb | [log] [tgz] |
|---|---|---|
| author | Sebastian Andrzej Siewior <[email protected]> | Tue Aug 21 21:55:31 2018 -0700 |
| committer | Linus Torvalds <[email protected]> | Wed Aug 22 10:52:46 2018 -0700 |
| tree | f5db856cd6e69abf35e136e8c2666469ac6b51d3 | |
| parent | cedc5b6aab493f6b1b1d381dccc0cc082da7d3d8 [diff] |
bdi: use refcount_t for reference counting instead atomic_t refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This permits avoiding accidental refcounter overflows that might lead to use-after-free situations. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Suggested-by: Peter Zijlstra <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>