summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-12-04 22:13:54 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-17 23:41:30 +0300
commit71425189b2b75336d869cfdedea45c9d319fc9c9 (patch)
treef6bdd8e4284ddceac8deb41eba2896bb32093870 /block/genhd.c
parent53a7f655834c7c335bf683f248208d4fbe4b47bc (diff)
downloadlinux-71425189b2b75336d869cfdedea45c9d319fc9c9.tar.xz
blk-mq: Don't complete on a remote CPU in force threaded mode
With force threaded interrupts enabled, raising softirq from an SMP function call will always result in waking the ksoftirqd thread. This is not optimal given that the thread runs at SCHED_OTHER priority. Completing the request in hard IRQ-context on PREEMPT_RT (which enforces the force threaded mode) is bad because the completion handler may acquire sleeping locks which violate the locking context. Disable request completing on a remote CPU in force threaded mode. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions