.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SCSI_EH_LOCK_DOOR" "9" "09 October 2005" "" ""
.SH NAME
scsi_eh_lock_door \- Prevent medium removal for the specified device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void scsi_eh_lock_door (struct scsi_device * \fIsdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsdev\fB\fR
SCSI device to prevent medium removal
.SH "LOCKING"
.PP
We must be called from process context; \fBscsi_allocate_request\fR
may sleep.
.SH "NOTES"
.PP
We queue up an asynchronous ``ALLOW MEDIUM REMOVAL'' request on the
head of the devices request queue, and continue.
.SH "BUGS"
.PP
\fBscsi_allocate_request\fR may sleep waiting for existing requests to
be processed. However, since we haven't kicked off any request
processing for this host, this may deadlock.
.PP
If \fBscsi_allocate_request\fR fails for what ever reason, we
completely forget to lock the door.