---
...allocator-send-discards-with-correct-size.patch | 30 ++++++++++++++++++++++
series.conf | 1 +
2 files changed, 31 insertions(+)
create mode 100644 patches.fixes/0003-bcache-allocator-send-discards-with-correct-size.patch
diff --git a/patches.fixes/0003-bcache-allocator-send-discards-with-correct-size.patch b/patches.fixes/0003-bcache-allocator-send-discards-with-correct-size.patch
new file mode 100644
index 0000000..302b471
--- /dev/null
+++ b/patches.fixes/0003-bcache-allocator-send-discards-with-correct-size.patch
@@ -0,0 +1,30 @@
+From 4726094cf5a43ad36c724ec7098dee5af37814fc Mon Sep 17 00:00:00 2001
+From: Slava Pestov
+Date: Mon, 21 Apr 2014 18:22:35 -0700
+Subject: [PATCH 03/14] bcache allocator: send discards with correct size
+Git-commit: 8b326d3a2a76912dfed2f0ab937d59fae9512ca2
+Patch-mainline: v3.17
+References: bnc#908592
+
+Signed-off-by: Joshua Schmid
+
+---
+ drivers/md/bcache/alloc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c
+index 443d03f..8eeab72 100644
+--- a/drivers/md/bcache/alloc.c
++++ b/drivers/md/bcache/alloc.c
+@@ -331,7 +331,7 @@ static int bch_allocator_thread(void *arg)
+ mutex_unlock(&ca->set->bucket_lock);
+ blkdev_issue_discard(ca->bdev,
+ bucket_to_sector(ca->set, bucket),
+- ca->sb.block_size, GFP_KERNEL, 0);
++ ca->sb.bucket_size, GFP_KERNEL, 0);
+ mutex_lock(&ca->set->bucket_lock);
+ }
+
+--
+2.1.2
+
diff --git a/series.conf b/series.conf
index f2caece..236a7d5 100644
--- a/series.conf
+++ b/series.conf
@@ -423,6 +423,7 @@
patches.fixes/blk-merge-fix-blk_recount_segments
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
########################################################
# 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