[PATCH 0/2] md: flush deadlock bugfix

linan666@huaweicloud.com posted 2 patches 1 year, 8 months ago
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(-)
[PATCH 0/2] md: flush deadlock bugfix
Posted by linan666@huaweicloud.com 1 year, 8 months ago
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(-)

-- 
2.39.2
Re: [PATCH 0/2] md: flush deadlock bugfix
Posted by Song Liu 1 year, 8 months ago
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