---
...4-bcache-fix-lockdep-warnings-on-shutdown.patch | 41 ++++++++++++++++++++++
series.conf | 1 +
2 files changed, 42 insertions(+)
create mode 100644 patches.fixes/0004-bcache-fix-lockdep-warnings-on-shutdown.patch
diff --git a/patches.fixes/0004-bcache-fix-lockdep-warnings-on-shutdown.patch b/patches.fixes/0004-bcache-fix-lockdep-warnings-on-shutdown.patch
new file mode 100644
index 0000000..4dac154
--- /dev/null
+++ b/patches.fixes/0004-bcache-fix-lockdep-warnings-on-shutdown.patch
@@ -0,0 +1,41 @@
+From bc0db49537f4e304e9d4d98d1894a8c165ae6064 Mon Sep 17 00:00:00 2001
+From: Slava Pestov
+Date: Tue, 29 Apr 2014 15:39:27 -0700
+Subject: [PATCH 04/14] bcache: fix lockdep warnings on shutdown
+Git-commit: e5112201c1285841f8b565ece5d6ae7e0d7947a2
+Patch-mainline: v3.17
+References: bnc#908593
+
+Signed-off-by: Joshua Schmid
+
+---
+ drivers/md/bcache/super.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
+index 1ea9fa2..09573c2 100644
+--- a/drivers/md/bcache/super.c
++++ b/drivers/md/bcache/super.c
+@@ -1214,7 +1214,9 @@ void bch_flash_dev_release(struct kobject *kobj)
+ static void flash_dev_free(struct closure *cl)
+ {
+ struct bcache_device *d = container_of(cl, struct bcache_device, cl);
++ mutex_lock(&bch_register_lock);
+ bcache_device_free(d);
++ mutex_unlock(&bch_register_lock);
+ kobject_put(&d->kobj);
+ }
+
+@@ -1222,7 +1224,9 @@ static void flash_dev_flush(struct closure *cl)
+ {
+ struct bcache_device *d = container_of(cl, struct bcache_device, cl);
+
++ mutex_lock(&bch_register_lock);
+ bcache_device_unlink(d);
++ mutex_unlock(&bch_register_lock);
+ kobject_del(&d->kobj);
+ continue_at(cl, flash_dev_free, system_wq);
+ }
+--
+2.1.2
+
diff --git a/series.conf b/series.conf
index 236a7d5..03d9a33 100644
--- a/series.conf
+++ b/series.conf
@@ -424,6 +424,7 @@
patches.fixes/0001-bcache-Fix-a-journal-replay-bug.patch
patches.fixes/0002-bcache-Fix-to-remove-the-rcu_sched-stalls.patch
patches.fixes/0003-bcache-allocator-send-discards-with-correct-size.patch
+ patches.fixes/0004-bcache-fix-lockdep-warnings-on-shutdown.patch
########################################################
# DRM/Video
--
2.1.2
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org