Linux-Raid Archives mirror
 help / color / mirror / Atom feed
From: linan666@huaweicloud.com
To: song@kernel.org, neilb@suse.com, mariusz.tkaczyk@linux.intel.com,
	shli@fb.com
Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org,
	linan666@huaweicloud.com, yukuai3@huawei.com,
	yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com
Subject: [PATCH v5 0/8] bugfix of MD_CLOSING and clean up md_ioctl()
Date: Thu,  1 Feb 2024 14:33:56 +0800	[thread overview]
Message-ID: <20240201063404.772797-1-linan666@huaweicloud.com> (raw)

From: Li Nan <linan122@huawei.com>

Changes in v5:
 - add patches 1-4 to clean up md_ioct(), pathc 4 can help us clean up
   local variable 'clear_md_closing'.
 - in patches 5 and 7, clean up local variable 'clear_md_closing'.

By the way, md_ioctl() is not readable now, I wanna to re-write it later
to make it only have one 'switch' like other drivers.

Li Nan (8):
  md: merge the check of capabilities into md_ioctl_valid()
  md: changed the switch of RAID_VERSION to if
  md: clean up invalid BUG_ON in md_ioctl
  md: return directly before setting did_set_md_closing
  md: Don't clear MD_CLOSING when the raid is about to stop
  md: factor out a helper to sync mddev
  md: sync blockdev before stopping raid or setting readonly
  md: check mddev->pers before calling md_set_readonly()

 drivers/md/md.c | 149 ++++++++++++++++++++++++++----------------------
 1 file changed, 80 insertions(+), 69 deletions(-)

-- 
2.39.2


             reply	other threads:[~2024-02-01  6:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01  6:33 linan666 [this message]
2024-02-01  6:33 ` [PATCH v5 1/8] md: merge the check of capabilities into md_ioctl_valid() linan666
2024-02-02  1:17   ` Yu Kuai
2024-02-01  6:33 ` [PATCH v5 2/8] md: changed the switch of RAID_VERSION to if linan666
2024-02-02  1:19   ` Yu Kuai
2024-02-01  6:33 ` [PATCH v5 3/8] md: clean up invalid BUG_ON in md_ioctl linan666
2024-02-02  1:20   ` Yu Kuai
2024-02-01  6:34 ` [PATCH v5 4/8] md: return directly before setting did_set_md_closing linan666
2024-02-02  1:24   ` Yu Kuai
2024-02-01  6:34 ` [PATCH v5 5/8] md: Don't clear MD_CLOSING when the raid is about to stop linan666
2024-02-02  1:26   ` Yu Kuai
2024-02-01  6:34 ` [PATCH v5 6/8] md: factor out a helper to sync mddev linan666
2024-02-01  6:34 ` [PATCH v5 7/8] md: sync blockdev before stopping raid or setting readonly linan666
2024-02-02  2:12   ` Yu Kuai
2024-02-02  9:26     ` Li Nan
2024-02-01  6:34 ` [PATCH v5 8/8] md: check mddev->pers before calling md_set_readonly() linan666

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240201063404.772797-1-linan666@huaweicloud.com \
    --to=linan666@huaweicloud.com \
    --cc=houtao1@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=mariusz.tkaczyk@linux.intel.com \
    --cc=neilb@suse.com \
    --cc=shli@fb.com \
    --cc=song@kernel.org \
    --cc=yangerkun@huawei.com \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).