[-next,0/2] md: clean up and fix for mddev_suspend()

Message ID 20230628012931.88911-1-yukuai1@huaweicloud.com
Headers
Series md: clean up and fix for mddev_suspend() |

Message

Yu Kuai June 28, 2023, 1:29 a.m. UTC
  From: Yu Kuai <yukuai3@huawei.com>

This patchset is minor changes that I found by code review while I'm
working on synchronize io and array configuration. I'm planing to
refactor mddev_suspend() from:

mddev_lock
// array configuration
mddev_unlock

and:

mddev_lock
mddev_suspend
// array configuration
mddev_resume
mddev_unlock

to:

mddev_suspend
mddev_lock
// array configuration
mddev_unlock
mddev_resume

Yu Kuai (2):
  md: don't quiesce in mddev_suspend()
  md: restore 'noio_flag' for the last mddev_resume()

 drivers/md/md.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Comments

Yu Kuai July 7, 2023, 1:25 a.m. UTC | #1
Hi,

在 2023/06/28 9:29, Yu Kuai 写道:
> From: Yu Kuai <yukuai3@huawei.com>
> 
> This patchset is minor changes that I found by code review while I'm
> working on synchronize io and array configuration. I'm planing to
> refactor mddev_suspend() from:
> 
> mddev_lock
> // array configuration
> mddev_unlock
> 
> and:
> 
> mddev_lock
> mddev_suspend
> // array configuration
> mddev_resume
> mddev_unlock
> 
> to:
> 
> mddev_suspend
> mddev_lock
> // array configuration
> mddev_unlock
> mddev_resume
> 

Friendly ping ...

Thanks,
Kuai

> Yu Kuai (2):
>    md: don't quiesce in mddev_suspend()
>    md: restore 'noio_flag' for the last mddev_resume()
> 
>   drivers/md/md.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
  
Song Liu July 7, 2023, 9:02 a.m. UTC | #2
On Fri, Jul 7, 2023 at 9:25 AM Yu Kuai <yukuai1@huaweicloud.com> wrote:
>
> Hi,
>
> 在 2023/06/28 9:29, Yu Kuai 写道:
> > From: Yu Kuai <yukuai3@huawei.com>
> >
> > This patchset is minor changes that I found by code review while I'm
> > working on synchronize io and array configuration. I'm planing to
> > refactor mddev_suspend() from:
> >
> > mddev_lock
> > // array configuration
> > mddev_unlock
> >
> > and:
> >
> > mddev_lock
> > mddev_suspend
> > // array configuration
> > mddev_resume
> > mddev_unlock
> >
> > to:
> >
> > mddev_suspend
> > mddev_lock
> > // array configuration
> > mddev_unlock
> > mddev_resume
> >
>
> Friendly ping ...

Applied to md-next. Thanks!

Song