summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0178-block-mq-use-cpu_light.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-rt/0178-block-mq-use-cpu_light.patch')
-rw-r--r--debian/patches-rt/0178-block-mq-use-cpu_light.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches-rt/0178-block-mq-use-cpu_light.patch b/debian/patches-rt/0178-block-mq-use-cpu_light.patch
new file mode 100644
index 000000000..127e4aeb1
--- /dev/null
+++ b/debian/patches-rt/0178-block-mq-use-cpu_light.patch
@@ -0,0 +1,36 @@
+From 0d89852edf5dc2169659eb46bba1b5dc4f92444b Mon Sep 17 00:00:00 2001
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Wed, 9 Apr 2014 10:37:23 +0200
+Subject: [PATCH 178/347] block: mq: use cpu_light()
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.246-rt110.tar.xz
+
+there is a might sleep splat because get_cpu() disables preemption and
+later we grab a lock. As a workaround for this we use get_cpu_light().
+
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ block/blk-mq.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/block/blk-mq.h b/block/blk-mq.h
+index 5ad9251627f8..5a96c97991b6 100644
+--- a/block/blk-mq.h
++++ b/block/blk-mq.h
+@@ -113,12 +113,12 @@ static inline struct blk_mq_ctx *__blk_mq_get_ctx(struct request_queue *q,
+ */
+ static inline struct blk_mq_ctx *blk_mq_get_ctx(struct request_queue *q)
+ {
+- return __blk_mq_get_ctx(q, get_cpu());
++ return __blk_mq_get_ctx(q, get_cpu_light());
+ }
+
+ static inline void blk_mq_put_ctx(struct blk_mq_ctx *ctx)
+ {
+- put_cpu();
++ put_cpu_light();
+ }
+
+ struct blk_mq_alloc_data {
+--
+2.36.1
+