From: Damien Le Moal <damien.lemoal@opensource.wdc.com>
To: Hannes Reinecke <hare@suse.de>,
"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 0/3] Improve libata support for FUA
Date: Sun, 23 Oct 2022 09:27:52 +0900 [thread overview]
Message-ID: <ce0e9649-873a-81f8-0702-e8d7d6ec84bc@opensource.wdc.com> (raw)
In-Reply-To: <5b8ae976-413a-98bb-1912-2fe953eaa918@suse.de>
On 10/22/22 22:50, Hannes Reinecke wrote:
> On 10/22/22 00:45, Damien Le Moal wrote:
>> On 10/22/22 06:02, Maciej S. Szmigiero wrote:
>>> On 21.10.2022 07:38, Damien Le Moal wrote:
>>>> These patches cleanup and improve libata support for the FUA device
>>>> feature. Patch 3 enables FUA support by default for any drive that
>>>> reports supporting the feature.
>>>>
>>>> Damien Le Moal (2):
>>>> ata: libata: cleanup fua handling
>>>> ata: libata: Enable fua support by default
>>>>
>>>> Maciej S. Szmigiero (1):
>>>> ata: libata: allow toggling fua parameter at runtime
>>>>
>>>
>>> Thanks Damien for the series!
>>>
>>> I've looked at the code changes and have basically two points:
>>> 1) There seems to be no way to revalidate the FUA setting for an existing
>>> disk, since it is now only taken into account in ata_dev_config_fua().
>>>
>>> As far as I can see, this function is only called on probe paths
>>> (and during exception handling), so if the "libata.fua" parameter is
>>> toggled the new setting would only affect newly (re-)attached disks.
>>
>> Yes. Indeed. Forcing an ATA revalidation needs some more trickery as the
>> regular sd_revalidate() does not lead to ata_dev_configure() being called
>> again.
>>
> But shouldn't we rather fix that?
> After Johns series of pre-allocating the SCSI devices we should be able
> to call ata_dev_configure() from sd_revalidate() ...
Yes, that should work. Though I am not sure if we really want to call
ata_dev_configure() every time sd_revalidate() is called, given the
performance impact of going to EH to revalidate an ATA drive. On an
average distro, there are quite a lot of revalidate going on...
For this particular case though, changing libata fua module parameter
value at libata run-time should trigger a revalidate of *all* ata drives,
which is different from the regular per-device revalidate driven by events
or the user changing a drive config through sysfs.
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2022-10-23 0:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 5:38 [PATCH 0/3] Improve libata support for FUA Damien Le Moal
2022-10-21 5:38 ` [PATCH 1/3] ata: libata: cleanup fua handling Damien Le Moal
2022-10-21 6:20 ` Hannes Reinecke
2022-10-21 5:38 ` [PATCH 2/3] ata: libata: allow toggling fua parameter at runtime Damien Le Moal
2022-10-21 6:21 ` Hannes Reinecke
2022-10-21 6:50 ` Damien Le Moal
2022-10-21 8:00 ` Damien Le Moal
2022-10-21 8:45 ` Hannes Reinecke
2022-10-21 8:48 ` Damien Le Moal
2022-10-21 5:38 ` [PATCH 3/3] ata: libata: Enable fua support by default Damien Le Moal
2022-10-21 6:22 ` Hannes Reinecke
2022-10-21 21:02 ` [PATCH 0/3] Improve libata support for FUA Maciej S. Szmigiero
2022-10-21 22:45 ` Damien Le Moal
2022-10-22 13:50 ` Hannes Reinecke
2022-10-23 0:27 ` Damien Le Moal [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=ce0e9649-873a-81f8-0702-e8d7d6ec84bc@opensource.wdc.com \
--to=damien.lemoal@opensource.wdc.com \
--cc=hare@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=mail@maciej.szmigiero.name \
/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