summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2020-10-14 17:42:22 +0200
committerSalvatore Bonaccorso <carnil@debian.org>2020-10-14 17:54:21 +0200
commita3f448cbf48f74dad411f6a251e0a5b313903799 (patch)
tree61ea34adb1a7c227084cdadea88f61b9aaa34a7b /debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch
parent7ee1983844312a301bf1929f87168ead8d4ded65 (diff)
downloadlinux-debian-a3f448cbf48f74dad411f6a251e0a5b313903799.tar.gz
[rt] Update to 5.9-rt15
[rt] Refresh "stop_machine: Add function and caller debug info"
Diffstat (limited to 'debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch')
-rw-r--r--debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch b/debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch
deleted file mode 100644
index d81d39003..000000000
--- a/debian/patches-rt/locking-rt-mutex-Flush-block-plug-on-__down_read.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From: Scott Wood <swood@redhat.com>
-Date: Fri, 4 Jan 2019 15:33:21 -0500
-Subject: [PATCH] locking/rt-mutex: Flush block plug on __down_read()
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.9/older/patches-5.9-rc8-rt12.tar.xz
-
-__down_read() bypasses the rtmutex frontend to call
-rt_mutex_slowlock_locked() directly, and thus it needs to call
-blk_schedule_flush_flug() itself.
-
-Cc: stable-rt@vger.kernel.org
-Signed-off-by: Scott Wood <swood@redhat.com>
-Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
----
- kernel/locking/rwsem-rt.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
---- a/kernel/locking/rwsem-rt.c
-+++ b/kernel/locking/rwsem-rt.c
-@@ -1,5 +1,6 @@
- /*
- */
-+#include <linux/blkdev.h>
- #include <linux/rwsem.h>
- #include <linux/sched/debug.h>
- #include <linux/sched/signal.h>
-@@ -87,6 +88,14 @@ static int __sched __down_read_common(st
-
- if (__down_read_trylock(sem))
- return 0;
-+ /*
-+ * If rt_mutex blocks, the function sched_submit_work will not call
-+ * blk_schedule_flush_plug (because tsk_is_pi_blocked would be true).
-+ * We must call blk_schedule_flush_plug here, if we don't call it,
-+ * a deadlock in I/O may happen.
-+ */
-+ if (unlikely(blk_needs_flush_plug(current)))
-+ blk_schedule_flush_plug(current);
-
- might_sleep();
- raw_spin_lock_irq(&m->wait_lock);