1. NAME

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

2. SYNOPSIS

void scsi_target_reap(struct scsi_target *  starget );

3. ARGUMENTS

starget
    target to be checked

4. 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.

5. AUTHORS

James Bottomley < >
    Author.

Rob Landley < >
    Author.

6. COPYRIGHT