All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: NeilBrown <neilb@suse.de>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	Michael Reed <mdr@sgi.com>,
	linux-raid@vger.kernel.org, Jeremy Higdon <jeremy@sgi.com>,
	Hannes Reinecke <hare@suse.de>
Subject: Re: md question re: max_hw_sectors_kb
Date: Wed, 11 May 2011 23:51:16 -0400	[thread overview]
Message-ID: <yq1oc38poej.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <20110510095243.0a23874b@notabene.brown> (NeilBrown's message of "Tue, 10 May 2011 09:52:43 +1000")

>>>>> "Neil" == NeilBrown  <neilb@suse.de> writes:

Neil,

>> Your fix is functionally correct. However, another case just popped
>> up this week where we need to distinguish between stacking driver and
>> LLD defaults.

Neil> What case is this?

This particular case involved the need to set different defaults for
discard depending on whether it was a stacking or a low level driver.


Neil> If you have FS -> DM -> MD, then any change that MD makes to
Neil> max_hw_sectors_kb will not be visible to the FS.  So adding and
Neil> activating a hot spare with smaller max_hw_sectors_kb cause cause
Neil> it to receive requests that are too big.

Yeah, this issue pops up occasionally. Alasdair and I were discussing it
just a couple of weeks ago.


Neil> So we really need a propery resolution to this problem first.
Neil> i.e. A way for 'dm' to notice when 'md' changes its parameters -
Neil> or in general any stacking deivce to find out when an underlying
Neil> device changes in any way.

Neil> I would implement this by having blkdev_get{,_by_path,_by_dev}
Neil> take an extra arg which is a pointer to a struct of functions.  In
Neil> the first instance there would be just one which tells the claimer
Neil> that something in queue.limits has changed.  Later we could add
Neil> other calls to help with size changes.

I agree we need a way to propagate queue limit and capacity changes up
the stack. I'll put in on my todo list.

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2011-05-12  3:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 20:20 md question re: max_hw_sectors_kb Michael Reed
2011-05-04 17:58 ` Martin K. Petersen
2011-05-04 18:08   ` Bernd Schubert
2011-05-09 23:52   ` NeilBrown
2011-05-12  3:51     ` Martin K. Petersen [this message]
2011-05-31  3:06       ` fibreraid
2011-05-06  4:24 ` NeilBrown
2011-05-06  4:40   ` NeilBrown
2011-05-09 16:02     ` Michael Reed

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=yq1oc38poej.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=hare@suse.de \
    --cc=jeremy@sgi.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mdr@sgi.com \
    --cc=neilb@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.