From: Markus Hochholdinger <Markus@hochholdinger.net>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: song@kernel.org, linux-raid@vger.kernel.org, xni@redhat.com
Subject: Re: [PATCH] md: fix update super 1.0 on rdev size change
Date: Tue, 16 Nov 2021 10:44:46 +0100 [thread overview]
Message-ID: <2299535.YZZJjEnbGj@enterprise> (raw)
In-Reply-To: <91d75292-401f-3788-63aa-f3c9aca8841c@molgen.mpg.de>
Hi Paul,
Am Dienstag, 16. November 2021, 10:24:17 CET schrieb Paul Menzel:
> Dear Markus,
> Thank you for your patch.
I have to thank you.
> Am 12.11.21 um 15:28 schrieb markus@hochholdinger.net:
> > From: Markus Hochholdinger <markus@hochholdinger.net>
> > The superblock of version 1.0 doesn't get moved to the new position on a
> > device size change. This leads to a rdev without a superblock on a known
> > position, the raid can't be re-assembled.
> > Fixes: commit d9c0fa509eaf ("md: fix max sectors calculation for super
> > 1.0")
> I think it’s common to not write *commit* in there, but just the short
> hash. `scripts/checkpatch.pl` does not mention that, but it mentions:
> ERROR: Missing Signed-off-by: line(s)
> total: 1 errors, 0 warnings, 7 lines checked
I'm sorry, this was my first patch request against the linux kernel.
Within https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
tree/Documentation/process/submitting-patches.rst I read to sign off a patch if
it is from me, but the line was there before. So I thought I don't have to
sign it.
Should I do the patch request again with Signed-off information?
> > drivers/md/md.c | 1 +
> > 1 file changed, 1 insertion(+)
> > diff --git a/drivers/md/md.c b/drivers/md/md.c
> > index 6c0c3d0d905a..ad968cfc883d 100644
> > --- a/drivers/md/md.c
> > +++ b/drivers/md/md.c
> > @@ -2193,6 +2193,7 @@ super_1_rdev_size_change(struct md_rdev *rdev,
> > sector_t num_sectors)>
> > if (!num_sectors || num_sectors > max_sectors)
> > num_sectors = max_sectors;
> > + rdev->sb_start = sb_start;
> > }
> > sb = page_address(rdev->sb_page);
> > sb->data_size = cpu_to_le64(num_sectors);
> Kind regards,
> Paul
Regards,
Markus
next prev parent reply other threads:[~2021-11-16 9:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 14:28 [PATCH] md: fix update super 1.0 on rdev size change markus
2021-11-15 9:47 ` Xiao Ni
2021-11-15 18:39 ` Markus Hochholdinger
2021-11-15 20:07 ` Wol
2021-11-16 8:35 ` Xiao Ni
2021-11-16 7:53 ` Xiao Ni
2021-11-16 9:28 ` Markus Hochholdinger
2021-11-16 16:41 ` Wols Lists
2021-11-16 8:36 ` Xiao Ni
2021-11-16 9:24 ` Paul Menzel
2021-11-16 9:44 ` Markus Hochholdinger [this message]
2021-11-16 9:52 ` Paul Menzel
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=2299535.YZZJjEnbGj@enterprise \
--to=markus@hochholdinger.net \
--cc=linux-raid@vger.kernel.org \
--cc=pmenzel@molgen.mpg.de \
--cc=song@kernel.org \
--cc=xni@redhat.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