[dm-devel] [PATCH] dm-cache: destroy migration_cache if cache target registration failed

2018-10-07 Thread Shenghui Wang
Destroy migration_cache if cache target registration failed in dm_cache_init. Signed-off-by: Shenghui Wang --- drivers/md/dm-cache-target.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index e13d991e9fb5

[dm-devel] [PATCH] dm bufio: update comment in dm-bufio.c

2018-10-31 Thread Shenghui Wang
* Hashtable has been replaced by rbtree to manage buffers. Update the comment. * Fix typo in the comment for dm_bufio_issue_flush Signed-off-by: Shenghui Wang --- drivers/md/dm-bufio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/md/dm-bufio.c b

[dm-devel] [PATCH] dm writecache: flush metadata in single commit in init_memory

2018-10-25 Thread Shenghui Wang
Do not flush sb ->magic in second commit. Signed-off-by: Shenghui Wang --- drivers/md/dm-writecache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index d656bd1799ae..8e9e96a22f68 100644 --- a/drivers/md

[dm-devel] [PATCH] dm writecache: remove unused variable sz in writecache_status

2018-10-25 Thread Shenghui Wang
sz defined but not used in writecache_status. Remove it. Signed-off-by: Shenghui Wang --- drivers/md/dm-writecache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index 5f1f80d424dd..562c32f644b8 100644 --- a/drivers/md/dm

[dm-devel] [PATCH] dm writecache: fix typo in error msg for creating writecache_flush_thread

2018-10-25 Thread Shenghui Wang
The error msg should be "flush thread" instead of "endio thread" for writecache_flush_thread. Signed-off-by: Shenghui Wang --- drivers/md/dm-writecache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-writecache.c b/drivers/md/d