---
...fix-crash-on-shutdown-in-passthrough-mode.patch | 34 ++++++++++++++++++++++
series.conf | 1 +
2 files changed, 35 insertions(+)
create mode 100644 patches.fixes/0005-bcache-fix-crash-on-shutdown-in-passthrough-mode.patch
diff --git a/patches.fixes/0005-bcache-fix-crash-on-shutdown-in-passthrough-mode.patch b/patches.fixes/0005-bcache-fix-crash-on-shutdown-in-passthrough-mode.patch
new file mode 100644
index 0000000..b9dfe0f
--- /dev/null
+++ b/patches.fixes/0005-bcache-fix-crash-on-shutdown-in-passthrough-mode.patch
@@ -0,0 +1,34 @@
+From 671e45c3cdddfe3ce9bb3ebe36f9eff583c826b2 Mon Sep 17 00:00:00 2001
+From: Slava Pestov
+Date: Tue, 20 May 2014 12:20:28 -0700
+Subject: [PATCH 05/14] bcache: fix crash on shutdown in passthrough mode
+Git-commit: a664d0f05a2ec02c8f042db536d84d15d6e19e81
+Patch-mainline: v3.17
+References: bnc#908594
+
+We never started the writeback thread in this case, so don't stop it.
+
+
+Signed-off-by: Joshua Schmid
+
+---
+ drivers/md/bcache/super.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
+index 09573c2..6ceaec3 100644
+--- a/drivers/md/bcache/super.c
++++ b/drivers/md/bcache/super.c
+@@ -1071,7 +1071,8 @@ static void cached_dev_free(struct closure *cl)
+ struct cached_dev *dc = container_of(cl, struct cached_dev, disk.cl);
+
+ cancel_delayed_work_sync(&dc->writeback_rate_update);
+- kthread_stop(dc->writeback_thread);
++ if (!IS_ERR_OR_NULL(dc->writeback_thread))
++ kthread_stop(dc->writeback_thread);
+
+ mutex_lock(&bch_register_lock);
+
+--
+2.1.2
+
diff --git a/series.conf b/series.conf
index 03d9a33..deeb38c 100644
--- a/series.conf
+++ b/series.conf
@@ -425,6 +425,7 @@
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
+ patches.fixes/0005-bcache-fix-crash-on-shutdown-in-passthrough-mode.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