aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorSreekanth Reddy <[email protected]>2018-02-16 20:39:58 -0200
committerMartin K. Petersen <[email protected]>2018-02-21 22:59:39 -0500
commitc666d3be99c000bb889a33353e9be0fa5808d3de (patch)
treed8905cad89a71ec8b69c758c770f90d8eb429700 /tools/perf/util/trace-event-scripting.c
parent9ff549ffb4fb4cc9a4b24d1de9dc3e68287797c4 (diff)
scsi: mpt3sas: wait for and flush running commands on shutdown/unload
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 <[email protected]> Tested-by: Mauricio Faria de Oliveira <[email protected]> Signed-off-by: Mauricio Faria de Oliveira <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions