Re: [PATCH] ata: fix a race condition when internal cmd time out

2019-02-16 Thread Jason Yan
Hi, Sergei Thanks for the review. On 2019/2/16 15:45, Sergei Shtylyov wrote: Hello! On 16.02.2019 6:42, Jason Yan wrote: For internal cmds, we will unmap DMA memory associated with the cmd before we abort the cmd. If DMA transfering data before the aborting,    Transferring. bus error

Re: [PATCH] ata: fix a race condition when internal cmd time out

2019-02-15 Thread Sergei Shtylyov
Hello! On 16.02.2019 6:42, Jason Yan wrote: For internal cmds, we will unmap DMA memory associated with the cmd before we abort the cmd. If DMA transfering data before the aborting, Transferring. bus error will occured. Occur. ata_exec_internal_sg ->ata_port_freeze if timeout

[PATCH] ata: fix a race condition when internal cmd time out

2019-02-15 Thread Jason Yan
For internal cmds, we will unmap DMA memory associated with the cmd before we abort the cmd. If DMA transfering data before the aborting, bus error will occured. ata_exec_internal_sg ->ata_port_freeze if timeout ->ata_qc_complete ->ata_sg_clean