From: Neil Brown <neilb@suse.de>
To: Andre Noll <maan@systemlinux.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH/RFC 0/2] md: personality pushdown patches -- intro
Date: Sun, 31 May 2009 08:19:41 +1000 [thread overview]
Message-ID: <18977.45309.243141.219288@notabene.brown> (raw)
In-Reply-To: message from Andre Noll on Friday May 29
On Friday May 29, maan@systemlinux.org wrote:
> Here are the first two patches for pushing down raid level dependent
> code from md.c to the corresponding personalities.
>
> The first patch is trivial as it moves only a printk() to the
> personalities. The second patch removes knowledge about bitmaps
> from md.c.
Thanks Andre.
This first is good and is now in my for-next branch.
The second is heading in the right direction.
However md_bitmap_present is as much of a layering violation in its
own way as the previous code was - diving in to the metatype_type
specific data.
You will notice in bitmap_create that an array has a bitmap if and
only if (mddev->bitmap_file || mddev->bitmap_offset).
So that is the test which should be used in md_bitmap_present.
Also the function name "md_bitmap_present" give no hint that it will
report an error - it reads like a simple test.
Maybe "md_check_no_bitmap" to indicate what the function is expecting
to find?
Thanks,
NeilBrown
>
> If the general approach used by the second patch is agreed with, I
> will follow up with patches that deal with data integrity registration
> and multipath handling which are the remaining two issues where md.c
> does what should be handled in personality code.
>
> Thanks
> Andre
> --
> 1.5.4.3
next prev parent reply other threads:[~2009-05-30 22:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-29 13:18 [PATCH/RFC 0/2] md: personality pushdown patches -- intro Andre Noll
2009-05-29 13:18 ` [PATCH 1/2] md: Push down reconstruction log message to personality code Andre Noll
2009-05-29 20:49 ` Raz
2009-05-29 13:18 ` [PATCH 2/2] md: Move check for bitmap presence " Andre Noll
2009-05-30 22:19 ` Neil Brown [this message]
2009-06-03 9:22 ` [PATCH/RFC 0/2] md: personality pushdown patches -- intro Andre Noll
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=18977.45309.243141.219288@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=maan@systemlinux.org \
/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 NNTP newsgroup(s).