mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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.
Fixes: a015434480 ("ext4: send parallel discards on commit completions")
Signed-off-by: Daeho Jeong <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
This commit is contained in:
parent
9c5d58fb9e
commit
e45105772d
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue