aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-09-11 00:58:00 +0800
committerColy Li <colyli@suse.de>2018-09-11 00:58:00 +0800
commitbb06a811e697c895953196373a92b3e3201b56ae (patch)
treea8ef270ea54e46980b6f054a68b38c6df29cf1be
parent83c05bc2e4ed981f82711fb537e9cab7ead4fb4a (diff)
downloadbcache-patches-bb06a811e697c895953196373a92b3e3201b56ae.tar.gz
for-current: remove 0001-bcache-release-dc-writeback_lock-properly-in-bch_wri.patch
-rw-r--r--for-current/0001-bcache-release-dc-writeback_lock-properly-in-bch_wri.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/for-current/0001-bcache-release-dc-writeback_lock-properly-in-bch_wri.patch b/for-current/0001-bcache-release-dc-writeback_lock-properly-in-bch_wri.patch
deleted file mode 100644
index 7ae11b1..0000000
--- a/for-current/0001-bcache-release-dc-writeback_lock-properly-in-bch_wri.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From c7abe8440836ebdebdff14e57970f69509666b1a Mon Sep 17 00:00:00 2001
-From: Shan Hai <shan.hai@oracle.com>
-Date: Wed, 22 Aug 2018 15:00:56 +0800
-Subject: [PATCH] bcache: release dc->writeback_lock properly in
- bch_writeback_thread()
-
-The writeback thread would exit with a lock held when the cache device is
-detached via sysfs interface, fix it by releasing the held lock before exiting
-the while-loop.
-
-Signed-off-by: Shan Hai <shan.hai@oracle.com>
-Signed-off-by: Coly Li <colyli@suse.de>
-Cc: stable@vger.kernel.org
----
- drivers/md/bcache/writeback.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
-index 6be05bd7ca67..08c3a9f9676c 100644
---- a/drivers/md/bcache/writeback.c
-+++ b/drivers/md/bcache/writeback.c
-@@ -685,8 +685,10 @@ static int bch_writeback_thread(void *arg)
- * data on cache. BCACHE_DEV_DETACHING flag is set in
- * bch_cached_dev_detach().
- */
-- if (test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags))
-+ if (test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags)) {
-+ up_write(&dc->writeback_lock);
- break;
-+ }
- }
-
- up_write(&dc->writeback_lock);
---
-2.18.0
-