* [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending()
@ 2025-07-04 10:45 Damien Le Moal
2025-07-04 11:27 ` Niklas Cassel
2025-07-07 10:43 ` Niklas Cassel
0 siblings, 2 replies; 3+ messages in thread
From: Damien Le Moal @ 2025-07-04 10:45 UTC (permalink / raw)
To: linux-ide, Niklas Cassel
Use the bool type for the fastdrain argmuent of ata_eh_set_pending(), as
it should be.
No functional changes.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
drivers/ata/libata-eh.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index e5fa61fb8a59..1f8a6b930f5d 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -907,7 +907,7 @@ void ata_eh_fastdrain_timerfn(struct timer_list *t)
* LOCKING:
* spin_lock_irqsave(host lock)
*/
-static void ata_eh_set_pending(struct ata_port *ap, int fastdrain)
+static void ata_eh_set_pending(struct ata_port *ap, bool fastdrain)
{
unsigned int cnt;
@@ -947,7 +947,7 @@ void ata_qc_schedule_eh(struct ata_queued_cmd *qc)
struct ata_port *ap = qc->ap;
qc->flags |= ATA_QCFLAG_EH;
- ata_eh_set_pending(ap, 1);
+ ata_eh_set_pending(ap, true);
/* The following will fail if timeout has already expired.
* ata_scsi_error() takes care of such scmds on EH entry.
@@ -969,7 +969,7 @@ void ata_std_sched_eh(struct ata_port *ap)
if (ap->pflags & ATA_PFLAG_INITIALIZING)
return;
- ata_eh_set_pending(ap, 1);
+ ata_eh_set_pending(ap, true);
scsi_schedule_eh(ap->scsi_host);
trace_ata_std_sched_eh(ap);
@@ -1020,7 +1020,7 @@ static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link)
int tag, nr_aborted = 0;
/* we're gonna abort all commands, no need for fast drain */
- ata_eh_set_pending(ap, 0);
+ ata_eh_set_pending(ap, false);
/* include internal tag in iteration */
ata_qc_for_each_with_internal(ap, qc, tag) {
--
2.50.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending()
2025-07-04 10:45 [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending() Damien Le Moal
@ 2025-07-04 11:27 ` Niklas Cassel
2025-07-07 10:43 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2025-07-04 11:27 UTC (permalink / raw)
To: Damien Le Moal; +Cc: linux-ide
On Fri, Jul 04, 2025 at 07:45:52PM +0900, Damien Le Moal wrote:
> Use the bool type for the fastdrain argmuent of ata_eh_set_pending(), as
s/argmuent/argument/
> it should be.
>
> No functional changes.
>
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending()
2025-07-04 10:45 [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending() Damien Le Moal
2025-07-04 11:27 ` Niklas Cassel
@ 2025-07-07 10:43 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2025-07-07 10:43 UTC (permalink / raw)
To: linux-ide, Damien Le Moal
On Fri, 04 Jul 2025 19:45:52 +0900, Damien Le Moal wrote:
> Use the bool type for the fastdrain argmuent of ata_eh_set_pending(), as
> it should be.
>
> No functional changes.
>
>
Applied to libata/linux.git (for-6.17), thanks!
[1/1] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending()
https://git.kernel.org/libata/linux/c/c5fccfe9
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-07 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-04 10:45 [PATCH] ata: libata-eh: use bool for fastdrain in ata_eh_set_pending() Damien Le Moal
2025-07-04 11:27 ` Niklas Cassel
2025-07-07 10:43 ` Niklas Cassel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox