projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'reset-fixes-for-v5.15' of git://git.pengutronix.de/pza/linux into arm...
[platform/kernel/linux-starfive.git]
/
fs
/
buffer.c
diff --git
a/fs/buffer.c
b/fs/buffer.c
index
ab7573d
..
c615387
100644
(file)
--- a/
fs/buffer.c
+++ b/
fs/buffer.c
@@
-1425,12
+1425,16
@@
void invalidate_bh_lrus(void)
}
EXPORT_SYMBOL_GPL(invalidate_bh_lrus);
}
EXPORT_SYMBOL_GPL(invalidate_bh_lrus);
-void invalidate_bh_lrus_cpu(int cpu)
+/*
+ * It's called from workqueue context so we need a bh_lru_lock to close
+ * the race with preemption/irq.
+ */
+void invalidate_bh_lrus_cpu(void)
{
struct bh_lru *b;
bh_lru_lock();
{
struct bh_lru *b;
bh_lru_lock();
- b =
per_cpu_ptr(&bh_lrus, cpu
);
+ b =
this_cpu_ptr(&bh_lrus
);
__invalidate_bh_lrus(b);
bh_lru_unlock();
}
__invalidate_bh_lrus(b);
bh_lru_unlock();
}