From: Jaegeuk Kim Date: Thu, 6 Sep 2018 18:40:12 +0000 (-0700) Subject: f2fs: submit bio after shutdown X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6096^2~56 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=5ce805869cbed93267ed26552ff76e30f05c91f7;p=linux.git f2fs: submit bio after shutdown Sometimes, some merged IOs could get a chance to be submitted, resulting in system hang in shutdown test. This issues IOs all the time after shutdown. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 8c204f896c22..26f38b224bb2 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -533,6 +533,8 @@ skip: if (fio->in_list) goto next; out: + if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN)) + __submit_merged_bio(io); up_write(&io->io_rwsem); }