Skip to content

sata_mv: Prevent PIO commands to be defered too long if traffic in progress.

Gwendal Grignou linux-ide 1 version Applied

Status from this message: applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1sata_mv: Prevent PIO commands to be defered too long if traffic in progress.drivers/ata/sata_mv.c+27 -24 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchGrant GrundlerMark Lord
1/1R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] sata_mv: Prevent PIO commands to be defered too long if traffic in progress.

Hello,

I found a bug in the sata_mv driver, that defers PIO commands indefinitely while there is a traffic on other ports of a sata port multiplier [PMP]:

without traffic:
time smartctl --all /dev/sdc > /dev/null
real 0m0.243s

with fio running and blasting read IOs on 5 drives behind the same port multiplier for 5 minutes:
real 4m59.353s

Obviously the PIO commands are defer while traffic is in progress.

With the patch following, smart_ctl return before fio complete. It still takes 4s, time for all NCQ commands to be flushed out.
real 0m4.074s

Gwendal.