[PATCH] lightnvm: pblk: don't recover unwritten lines

2018-02-21 Thread hans . ml . holmberg
From: Hans Holmberg If the line has not been written to, we should not try to recover any data from it, so check the state of the chunks in the line before attempting to read smeta. Signed-off-by: Hans Holmberg Signed-off-by: Javier González --- NOTE: This patch applies on top of the 2.0 patc

[PATCH 1/3] lightnvm: pblk: delete writer kick timer before stopping thread

2018-02-21 Thread hans . ml . holmberg
From: Hans Holmberg Unless we delete the timer that wakes up the write thread before we stop the thread we risk re-starting the thread, so delete the timer first. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH 2/3] lightnvm: pblk: allow allocation of new lines during shutdown

2018-02-21 Thread hans . ml . holmberg
From: Hans Holmberg When shutting down pblk the write buffer is flushed and if the current line can't fit the data in the write buffer we need to allocate a new line, so remove the check that prevents this. Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-core.c | 7 --- 1 file chang

[PATCH 3/3] lightnvm: pblk: prevent race in pblk_rb_flush_point_set

2018-02-21 Thread hans . ml . holmberg
From: Hans Holmberg Make sure that we are not advancing the sync pointer while we're adding bios to the write buffer entry completion list. This race condition results in bios not completing and was identified by a hang when running xfstest generic/113. Signed-off-by: Hans Holmberg --- driver

[PATCH 0/3] pblk bugfixes

2018-02-21 Thread hans . ml . holmberg
From: Hans Holmberg This is a slew of generic bugfixes to pblk The patches apply on top of: https://github.com/OpenChannelSSD/linux branch for-4.17/core Hans Holmberg (3): lightnvm: pblk: delete writer kick timer before stopping thread lightnvm: pblk: allow allocation of new lines during sh

[PATCH V2] lightnvm: pblk: add padding distribution sysfs attribute

2018-02-06 Thread hans . ml . holmberg
From: Hans Holmberg When pblk receives a sync, all data up to that point in the write buffer must be comitted to persistent storage, and as flash memory comes with a minimal write size there is a significant cost involved both in terms of time for completing the sync and in terms of write amplifi