* [PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount
@ 2017-02-27 10:43 Chao Yu
2017-02-27 10:43 ` [PATCH 2/2] f2fs: fix to enlarge size of write_io_dummy mempool Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Chao Yu @ 2017-02-27 10:43 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, chao, Chao Yu
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
fs/f2fs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 751e1068db17..53305880c455 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -818,7 +818,7 @@ static void f2fs_put_super(struct super_block *sb)
kfree(sbi->raw_super);
destroy_device_list(sbi);
-
+ mempool_destroy(sbi->write_io_dummy);
destroy_percpu_info(sbi);
kfree(sbi);
}
--
2.8.2.295.g3f1c1d0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] f2fs: fix to enlarge size of write_io_dummy mempool
2017-02-27 10:43 [PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount Chao Yu
@ 2017-02-27 10:43 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2017-02-27 10:43 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, chao, Chao Yu
It needs to double cache size of write_io_dummy mempool, otherwise we may
run out of cache in scenraio of Data/Node IOs were issued concurrently.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
fs/f2fs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 53305880c455..7571eb297b21 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1929,7 +1929,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
if (F2FS_IO_SIZE(sbi) > 1) {
sbi->write_io_dummy =
- mempool_create_page_pool(F2FS_IO_SIZE(sbi) - 1, 0);
+ mempool_create_page_pool(2 * (F2FS_IO_SIZE(sbi) - 1), 0);
if (!sbi->write_io_dummy)
goto free_options;
}
--
2.8.2.295.g3f1c1d0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-27 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 10:43 [PATCH 1/2] f2fs: fix memory leak of write_io_dummy mempool during umount Chao Yu
2017-02-27 10:43 ` [PATCH 2/2] f2fs: fix to enlarge size of write_io_dummy mempool Chao Yu
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).