mbox series

[0/2] md: flush deadlock bugfix

Message ID 20240525185257.3896201-1-linan666@huaweicloud.com (mailing list archive)
Headers show
Series md: flush deadlock bugfix | expand

Message

Li Nan May 25, 2024, 6:52 p.m. UTC
From: Li Nan <linan122@huawei.com>

I recently identified a flush deadlock issue, which can be resolved
by this patch set. After testing for a day in an environment where the
problem can be easily reproduced, I did not encounter the issue again.

Before a complete overwrite of the md flush, first fix the issue with
this patch set.

Li Nan (2):
  md: change the return value type of md_write_start to void
  md: fix deadlock between mddev_suspend and flush bio

 drivers/md/md.h     |  2 +-
 drivers/md/md.c     | 40 +++++++++++++++++++---------------------
 drivers/md/raid1.c  |  3 +--
 drivers/md/raid10.c |  3 +--
 drivers/md/raid5.c  |  3 +--
 5 files changed, 23 insertions(+), 28 deletions(-)

Comments

Song Liu June 10, 2024, 8:52 p.m. UTC | #1
On Sat, May 25, 2024 at 4:00 AM <linan666@huaweicloud.com> wrote:
>
> From: Li Nan <linan122@huawei.com>
>
> I recently identified a flush deadlock issue, which can be resolved
> by this patch set. After testing for a day in an environment where the
> problem can be easily reproduced, I did not encounter the issue again.
>
> Before a complete overwrite of the md flush, first fix the issue with
> this patch set.
>
> Li Nan (2):
>   md: change the return value type of md_write_start to void
>   md: fix deadlock between mddev_suspend and flush bio

Applied the set to md-6.11. Thanks!

Song