linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Shaohua Li <shli@fb.com>
Cc: linux-raid@vger.kernel.org, Kernel-team@fb.com,
	songliubraving@fb.com, hch@infradead.org
Subject: Re: [PATCH] raid5-cache: add journal hot add/remove support
Date: Wed, 16 Dec 2015 14:42:27 +1100	[thread overview]
Message-ID: <87y4cv9hzw.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <20151216013310.GA741432@devbig084.prn1.facebook.com>

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

On Wed, Dec 16 2015, Shaohua Li wrote:

>> And I'm a bit uncertain about setting rdev->raid_disk to
>> mddev->raid_disks.
>> I thought we decided that "Journal" devices had a different namespace
>> for raid_disk than data disks, so ->raid_disk of 0 was appropriate?
>> Setting the journal raid_disk to mddev->raid_disks might cause problems
>> when we ultimately support reshaping an array with a journal.
>
> 0 will introduce confusion in sysfs entry, eg, which disk should
> xxx/md/rd0 point to? Create a special sys file? This appears the only
> reason we don't use 0.

sysfs_link_rdev already avoids the "rd%d" link of Replacement devices.
Change it and sysfs_unlink_rdev to ignore the Journal device too.

Thanks,
NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

      reply	other threads:[~2015-12-16  3:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-15  6:22 [PATCH] raid5-cache: add journal hot add/remove support Shaohua Li
2015-12-16  1:14 ` NeilBrown
2015-12-16  1:33   ` Shaohua Li
2015-12-16  3:42     ` NeilBrown [this message]

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=87y4cv9hzw.fsf@notabene.neil.brown.name \
    --to=neilb@suse.de \
    --cc=Kernel-team@fb.com \
    --cc=hch@infradead.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=shli@fb.com \
    --cc=songliubraving@fb.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 NNTP newsgroup(s).