Re: [PATCH 4.14,4.15 2/2] scsi: mpt3sas: wait for and flush running commands on shutdown/unload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 08, 2018 at 11:55:13AM -0300, Mauricio Faria de Oliveira wrote:
> From: Sreekanth Reddy <sreekanth.reddy@xxxxxxxxxxxx>
> 
> commit c666d3be99c000bb889a33353e9be0fa5808d3de upstream.
> 
> This patch finishes all outstanding SCSI IO commands (but not other commands,
> e.g., task management) in the shutdown and unload paths.
> 
> It first waits for the commands to complete (this is done after setting
> 'ioc->remove_host = 1 ', which prevents new commands to be queued) then it
> flushes commands that might still be running.
> 
> This avoids triggering error handling (e.g., abort command) for all commands
> possibly completed by the adapter after interrupts disabled.
> 
> [mauricfo: introduced something in commit message.]
> 
> Signed-off-by: Sreekanth Reddy <sreekanth.reddy@xxxxxxxxxxxx>
> Tested-by: Mauricio Faria de Oliveira <mauricfo@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Mauricio Faria de Oliveira <mauricfo@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> [mauricfo: backport to linux-4.15.y (a few updates to context lines)]

Also does not apply to 4.14.y :(



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]