diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2018-06-08 00:10:48 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-06-08 00:34:39 +0000 |
| commit | 804209d8a0096d9ed8c9891f987f42bc1a98b8f9 (patch) | |
| tree | 5bbe9e03463b5cc932ce1c9cc90f29c38e3a2184 /lib/ucs2_string.c | |
| parent | lib/idr.c: remove simple_ida_lock (diff) | |
| download | kernel-804209d8a0096d9ed8c9891f987f42bc1a98b8f9.tar.gz kernel-804209d8a0096d9ed8c9891f987f42bc1a98b8f9.zip | |
lib/percpu_ida.c: use _irqsave() instead of local_irq_save() + spin_lock
percpu_ida() decouples disabling interrupts from the locking operations.
This breaks some assumptions if the locking operations are replaced like
they are under -RT.
The same locking can be achieved by avoiding local_irq_save() and using
spin_lock_irqsave() instead. percpu_ida_alloc() gains one more preemption
point because after unlocking the fastpath and before the pool lock is
acquired, the interrupts are briefly enabled.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Nicholas Bellinger <[email protected]>
Cc: Shaohua Li <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/ucs2_string.c')
0 files changed, 0 insertions, 0 deletions
