lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 03 Aug 2017 10:21:36 +0900 From: Daeho Jeong <daeho.jeong@...sung.com> To: jack@...e.cz, tytso@....edu, linux-ext4@...r.kernel.org Cc: Daeho Jeong <daeho.jeong@...sung.com> Subject: [PATCH] ext4: release discard bio after sending discard commands We've changed the discard command handling into parallel manner. But, in this change, I forgot decreasing the usage count of the bio which was used to send discard request. I'm sorry about that. Signed-off-by: Daeho Jeong <daeho.jeong@...sung.com> Reviewed-by: Jan Kara <jack@...e.cz> Fixes: a015434480dc ("ext4: send parallel discards on commit completions") --- fs/ext4/mballoc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index ab70b69e644c..88317b0cf7b8 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2892,8 +2892,10 @@ void ext4_process_freed_data(struct super_block *sb, tid_t commit_tid) break; } - if (discard_bio) + if (discard_bio) { submit_bio_wait(discard_bio); + bio_put(discard_bio); + } } list_for_each_entry_safe(entry, tmp, &freed_data_list, efd_list) -- 2.13.0
Powered by blists - more mailing lists