summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 17:45:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 17:45:36 +0000
commit429d3efd5669e129a6168d62edb6832e36b7a2a0 (patch)
tree14b99403f823ded018ba76aa450e8687247796b8 /debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
parentMerging upstream version 5.10.216. (diff)
downloadlinux-429d3efd5669e129a6168d62edb6832e36b7a2a0.tar.xz
linux-429d3efd5669e129a6168d62edb6832e36b7a2a0.zip
Adding debian version 5.10.216-1.debian/5.10.216-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch')
-rw-r--r--debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch b/debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
index e687b4d2d..83c9ac4c1 100644
--- a/debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
+++ b/debian/patches-rt/0185-fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
@@ -1,9 +1,9 @@
-From 06c5210bfc8eff16e0d1df2430c7fcb07eae6c67 Mon Sep 17 00:00:00 2001
+From 84c3dc76def6dc05f7c4d5da3d1ca055631803c3 Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Fri, 20 Oct 2017 11:29:53 +0200
Subject: [PATCH 185/323] fs/dcache: disable preemption on i_dir_seq's write
side
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patches-5.10.204-rt100.tar.xz
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patches-5.10.215-rt107.tar.xz
i_dir_seq is an opencoded seqcounter. Based on the code it looks like we
could have two writers in parallel despite the fact that the d_lock is
@@ -24,10 +24,10 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/fs/dcache.c b/fs/dcache.c
-index 1f4255ef8722..26a187abf13a 100644
+index 4bcd832ace5dc..380c528e6e98c 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
-@@ -2503,9 +2503,10 @@ EXPORT_SYMBOL(d_rehash);
+@@ -2504,9 +2504,10 @@ EXPORT_SYMBOL(d_rehash);
static inline unsigned start_dir_add(struct inode *dir)
{
@@ -40,7 +40,7 @@ index 1f4255ef8722..26a187abf13a 100644
return n;
cpu_relax();
}
-@@ -2513,7 +2514,8 @@ static inline unsigned start_dir_add(struct inode *dir)
+@@ -2514,7 +2515,8 @@ static inline unsigned start_dir_add(struct inode *dir)
static inline void end_dir_add(struct inode *dir, unsigned n)
{
@@ -50,7 +50,7 @@ index 1f4255ef8722..26a187abf13a 100644
}
static void d_wait_lookup(struct dentry *dentry)
-@@ -2549,7 +2551,7 @@ struct dentry *d_alloc_parallel(struct dentry *parent,
+@@ -2550,7 +2552,7 @@ struct dentry *d_alloc_parallel(struct dentry *parent,
retry:
rcu_read_lock();
@@ -59,7 +59,7 @@ index 1f4255ef8722..26a187abf13a 100644
r_seq = read_seqbegin(&rename_lock);
dentry = __d_lookup_rcu(parent, name, &d_seq);
if (unlikely(dentry)) {
-@@ -2577,7 +2579,7 @@ struct dentry *d_alloc_parallel(struct dentry *parent,
+@@ -2578,7 +2580,7 @@ struct dentry *d_alloc_parallel(struct dentry *parent,
}
hlist_bl_lock(b);
@@ -69,7 +69,7 @@ index 1f4255ef8722..26a187abf13a 100644
rcu_read_unlock();
goto retry;
diff --git a/fs/inode.c b/fs/inode.c
-index 5c7139aa2bda..4ee8239c055f 100644
+index 5c7139aa2bda7..4ee8239c055f1 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -158,7 +158,7 @@ int inode_init_always(struct super_block *sb, struct inode *inode)
@@ -82,10 +82,10 @@ index 5c7139aa2bda..4ee8239c055f 100644
inode->dirtied_when = 0;
diff --git a/include/linux/fs.h b/include/linux/fs.h
-index 82316863c71f..a29a0b8a1eca 100644
+index 6de70634e5471..16e5e3096a504 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
-@@ -699,7 +699,7 @@ struct inode {
+@@ -701,7 +701,7 @@ struct inode {
struct block_device *i_bdev;
struct cdev *i_cdev;
char *i_link;
@@ -95,5 +95,5 @@ index 82316863c71f..a29a0b8a1eca 100644
__u32 i_generation;
--
-2.43.0
+2.44.0