Files
kernel_google_wahoo/fs
Jack Qiu afdbe8e07e fs: direct-io: fix missing sdio->boundary
commit df41872b68601059dd4a84858952dcae58acd331 upstream.

I encountered a hung task issue, but not a performance one.  I run DIO
on a device (need lba continuous, for example open channel ssd), maybe
hungtask in below case:

  DIO:						Checkpoint:
  get addr A(at boundary), merge into BIO,
  no submit because boundary missing
						flush dirty data(get addr A+1), wait IO(A+1)
						writeback timeout, because DIO(A) didn't submit
  get addr A+2 fail, because checkpoint is doing

dio_send_cur_page() may clear sdio->boundary, so prevent it from missing
a boundary.

Link: https://lkml.kernel.org/r/20210322042253.38312-1-jack.qiu@huawei.com
Fixes: b1058b9812 ("direct-io: submit bio after boundary buffer is added to it")
Signed-off-by: Jack Qiu <jack.qiu@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-16 12:00:21 +02:00
..
2020-11-10 10:22:17 +01:00
2017-12-20 10:04:56 +01:00
2019-08-06 18:28:27 +02:00
2020-08-21 10:53:02 +02:00
2020-08-21 10:53:05 +02:00
2019-03-23 08:44:21 +01:00
2020-11-18 18:25:01 +01:00
2018-12-21 14:09:50 +01:00
2015-11-16 23:54:45 -08:00
2021-02-03 23:16:16 +01:00
2020-04-02 19:02:31 +02:00
2015-11-16 23:54:45 -08:00
2021-02-10 09:07:27 +01:00
2017-06-14 13:16:24 +02:00
2018-02-16 20:09:43 +01:00
2017-06-14 13:16:24 +02:00