[PATCH] bcache: fix superblock being corrupted with non-4KB page size

2018-10-12 Thread Guoju Fang
gned-off-by: Guoju Fang --- drivers/md/bcache/super.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 30ba9ae..64715a8 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache

[PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-09-27 Thread guoju
, by shrinking cache and slab used by vfs, which depends on bcache device. That's a deadlock. This patch create a new workqueue for journal_write with WQ_MEM_RECLAIM flag. It's rescuer thread will work to avoid the deadlock. Signed-off-by: guoju --- drivers/md/bcache/bcache.h | 1 +