---
name: "scsi_target_reap"
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_target_reap"
---

# scsi\_target\_reap(9)

check to see if target is in use and destroy if not

## NAME

scsi\_target\_reap - check to see if target is in use and destroy if not

## SYNOPSIS

**void scsi\_target\_reap(struct scsi\_target \*** *starget***);**

## ARGUMENTS

*starget*

target to be checked

## DESCRIPTION

This is used after removing a LUN or doing a last put of the target it checks atomically that nothing is using the target and removes it if so.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
