---
name: "scsi_eh_finish_cmd"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_eh_finish_cmd"
---

# scsi\_eh\_finish\_cmd(9)

Handle a cmd that eh is finished with.

## NAME

scsi\_eh\_finish\_cmd - Handle a cmd that eh is finished with.

## SYNOPSIS

**void scsi\_eh\_finish\_cmd(struct scsi\_cmnd \*** *scmd***, struct list\_head \*** *done\_q***);**

## ARGUMENTS

*scmd*

Original SCSI cmd that eh has finished.

*done\_q*

Queue for processed commands.

## NOTES

We don't want to use the normal command completion while we are are still handling errors - it may cause other commands to be queued, and that would disturb what we are doing. Thus we really want to keep a list of pending commands for final completion, and once we are ready to leave error handling we handle completion for real.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
