* Patch "[PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat" has been added to the 4.4-stable tree
@ 2016-09-09 13:37 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-09-09 13:37 UTC (permalink / raw)
To: chao2.yu, alexander.levin, axboe, gregkh, m; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
[PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
0028-lightnvm-fix-incorrect-nr_free_blocks-stat.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 84f44c75c7e0dc3903563e33428cb23970e91ce7 Mon Sep 17 00:00:00 2001
From: Chao Yu <chao2.yu@samsung.com>
Date: Tue, 12 Jan 2016 07:49:16 +0100
Subject: [PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ Upstream commit bdded1552085b12d23c9be76147d2e96647a098f ]
When initing bad block list in gennvm_block_bb, once we move bad block
from free_list to bb_list, we should maintain both stat info
nr_free_blocks and nr_bad_blocks. So this patch fixes to add missing
operation related to nr_free_blocks.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/lightnvm/gennvm.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/lightnvm/gennvm.c
+++ b/drivers/lightnvm/gennvm.c
@@ -89,6 +89,7 @@ static int gennvm_block_bb(struct ppa_ad
list_move_tail(&blk->list, &lun->bb_list);
lun->vlun.nr_bad_blocks++;
+ lun->vlun.nr_free_blocks--;
}
return 0;
Patches currently in stable-queue which might be from chao2.yu@samsung.com are
queue-4.4/0028-lightnvm-fix-incorrect-nr_free_blocks-stat.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-09 13:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 13:37 Patch "[PATCH 028/135] lightnvm: fix incorrect nr_free_blocks stat" has been added to the 4.4-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).