All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: Tejun Heo <tj@kernel.org>
Cc: Robert Hancock <hancockrwd@gmail.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Ben Hutchings <ben@decadent.org.uk>,
	Jeff Garzik <jgarzik@redhat.com>,
	IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: libata: implement on-demand HPA unlocking
Date: Thu, 10 Feb 2011 14:11:59 -0500	[thread overview]
Message-ID: <4D54387F.3030809@cfl.rr.com> (raw)
In-Reply-To: <20110210091325.GK3770@htj.dyndns.org>

On 2/10/2011 4:13 AM, Tejun Heo wrote:
> What happens if a drive is moved to another machine?  What about
> hotplugging a drive?  What if partition detection code incorrectly
> interprets a chunk of data in a RAID5 member as a partition table
> (most partition tables don't have good protection against
> misinterpretation)?

I don't see how any of these cases are made worse by your change.  If
you move to another machine and it adds an HPA, then your change will
unlock it.  If you incorrectly interpret a chunk of data as a partition
table, then you incorrectly unlock ( this is exactly what I am to fix ),
but that isn't worse than always unlocking.

> BIOS features are designed with the mindset "If it works on this
> motherboard and windows, we're done.  Hell with all other use cases",
> which is quite different from what Linux should be aiming for.

I agree, but always unlocking seems to HURT that goal rather than help it.

> You've got it backwards.  The patch doesn't do anything for distros
> which unlock by default.  On the contrary, the patch unlocks _more_ on
> ones which didn't use to.  IIRC, debian didn't want to unlock by
> default (the rationale was that they already had both ide and libata
> userbases) and it seemed like a good enough tradeoff to avoid breaking
> ide compatibility for most people.

You can't unlock any more than always ;)

Ubuntu has dropped its patch to always unlock in favor of your upstream
change to unlock when it makes sense.  The net result is that it unlocks
less, but still sometimes unlocks when it should not with certain raid
setups.  Also this is not just a problem for fakeraid; mdadm raid setups
can run into the same problem.

> Making the condition more intricate won't fix the problem.  It's just
> gonna make it fail in more weird and convoluted ways.

If it fails less, then it is an improvement.

> Hotplugging and being able to move hard drives between different
> machines, and in general behaving consistently across different
> hardware configurations have way higher priority than trying to avoid

Your auto unlock change seems to address that issue just fine.

  reply	other threads:[~2011-02-10 19:11 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 20:23 libata: implement on-demand HPA unlocking Phillip Susi
2011-02-09  8:59 ` Tejun Heo
2011-02-09 15:20   ` Phillip Susi
2011-02-09 15:37     ` Alan Cox
2011-02-09 15:36       ` Tejun Heo
2011-02-09 18:48         ` Jeff Garzik
2011-02-09 19:45           ` Phillip Susi
2011-02-10  9:44             ` Tejun Heo
2011-02-10 18:47               ` Phillip Susi
2011-02-10 19:07                 ` Tejun Heo
2011-02-09 19:39         ` Phillip Susi
2011-02-09 19:36       ` Phillip Susi
2011-02-09 20:47         ` Greg Freemyer
2011-02-09 21:12           ` Phillip Susi
2011-02-09 21:13         ` Alan Cox
2011-02-09 21:28           ` Phillip Susi
2011-02-09 21:39             ` Alan Cox
2011-02-10  0:23               ` Phillip Susi
2011-02-10 12:46                 ` Alan Cox
2011-02-10 18:58                   ` Phillip Susi
2011-02-10 19:19                     ` Tejun Heo
2011-02-11 18:16                       ` Phillip Susi
2011-02-10 12:49                 ` Bartlomiej Zolnierkiewicz
2011-02-10 19:20                   ` Phillip Susi
2011-02-10 19:35                     ` Alan Cox
2011-02-11 18:22                       ` Phillip Susi
2011-02-10 19:37                     ` Alan Cox
2011-02-09 21:41         ` Tejun Heo
2011-02-10  0:35           ` Phillip Susi
2011-02-10  1:46             ` Robert Hancock
2011-02-10  9:13               ` Tejun Heo
2011-02-10 19:11                 ` Phillip Susi [this message]
2011-02-10 19:31                   ` Alan Cox
2011-02-11 18:18                     ` Phillip Susi
2011-02-11 18:25                       ` Alan Cox
2011-02-11 18:38                         ` Phillip Susi
2011-02-10 19:32                   ` Tejun Heo
2011-02-10 19:34                     ` Tejun Heo
2011-02-11 18:30                     ` Phillip Susi

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=4D54387F.3030809@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=ben@decadent.org.uk \
    --cc=hancockrwd@gmail.com \
    --cc=jgarzik@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@kernel.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 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.