From: Hannes Reinecke <hare@suse.de>
To: Damien Le Moal <damien.lemoal@opensource.wdc.com>,
"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 0/3] Improve libata support for FUA
Date: Sat, 22 Oct 2022 15:50:18 +0200 [thread overview]
Message-ID: <5b8ae976-413a-98bb-1912-2fe953eaa918@suse.de> (raw)
In-Reply-To: <d0315388-460b-37c9-298e-97f86b7965b7@opensource.wdc.com>
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() ...
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman
next prev parent reply other threads:[~2022-10-22 13:50 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 [this message]
2022-10-23 0:27 ` Damien Le Moal
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=5b8ae976-413a-98bb-1912-2fe953eaa918@suse.de \
--to=hare@suse.de \
--cc=damien.lemoal@opensource.wdc.com \
--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