summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2018-07-24 12:36:43 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2018-07-24 12:36:43 -0400
commitdbbd0c6839a367531cd01de40d3bf3bb7861763b (patch)
tree8d4cea8c5188b6a002abfdd690a775ab4070a249
parent34f3780091dc714415b90b39ecc992891dd772c4 (diff)
downloadlongterm-queue-4.12-dbbd0c6839a367531cd01de40d3bf3bb7861763b.tar.gz
lightnvm: trivial context refresh
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--queue/lightnvm-pblk-fix-changing-GC-group-list-for-a-line.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/queue/lightnvm-pblk-fix-changing-GC-group-list-for-a-line.patch b/queue/lightnvm-pblk-fix-changing-GC-group-list-for-a-line.patch
index 8f7eeb9..1eb4517 100644
--- a/queue/lightnvm-pblk-fix-changing-GC-group-list-for-a-line.patch
+++ b/queue/lightnvm-pblk-fix-changing-GC-group-list-for-a-line.patch
@@ -1,4 +1,4 @@
-From 27b978725d895e704aab44b99242a0514485d798 Mon Sep 17 00:00:00 2001
+From 95c46e590dd4ec72a5273c27ed24020b94f9f76d Mon Sep 17 00:00:00 2001
From: Rakesh Pandit <rakesh@tuxera.com>
Date: Fri, 13 Oct 2017 14:46:28 +0200
Subject: [PATCH] lightnvm: pblk: fix changing GC group list for a line
@@ -18,12 +18,13 @@ Fixes: a4bd217b4("lightnvm: physical block device (pblk) target")
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
+Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c
-index c7239c41ba40..56ece7dfac0e 100644
+index ae8cd6d5af8b..ec10434c8e8c 100644
--- a/drivers/lightnvm/pblk-init.c
+++ b/drivers/lightnvm/pblk-init.c
-@@ -678,8 +678,8 @@ static int pblk_lines_init(struct pblk *pblk)
+@@ -552,8 +552,8 @@ static int pblk_lines_init(struct pblk *pblk)
lm->blk_bitmap_len = BITS_TO_LONGS(geo->nr_luns) * sizeof(long);
lm->sec_bitmap_len = BITS_TO_LONGS(lm->sec_per_line) * sizeof(long);
lm->lun_bitmap_len = BITS_TO_LONGS(geo->nr_luns) * sizeof(long);
@@ -31,9 +32,9 @@ index c7239c41ba40..56ece7dfac0e 100644
- lm->mid_thrs = lm->sec_per_line / 4;
+ lm->mid_thrs = lm->sec_per_line / 2;
+ lm->high_thrs = lm->sec_per_line / 4;
- lm->meta_distance = (geo->nr_luns / 2) * pblk->min_write_pgs;
/* Calculate necessary pages for smeta. See comment over struct
+ * line_smeta definition
--
2.15.0