mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
f2fs: wake up all waiters in f2fs_submit_discard_endio
There could be more than one waiter waiting discard IO completion, so we
need use complete_all() instead of complete() in f2fs_submit_discard_endio
to avoid hungtask.
Fixes: ec9895add2 ("f2fs: don't hold cmd_lock during waiting discard
command")
Cc: <[email protected]>
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
04dfc23006
commit
e31b982157
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ static void f2fs_submit_discard_endio(struct bio *bio)
|
|||
|
||||
dc->error = bio->bi_error;
|
||||
dc->state = D_DONE;
|
||||
complete(&dc->wait);
|
||||
complete_all(&dc->wait);
|
||||
bio_put(bio);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue