SCSI_EH_LOCK_DOOR

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

scsi_eh_lock_door - Prevent medium removal for the specified device  

SYNOPSIS

"SYNOPSIS"

void scsi_eh_lock_door (struct scsi_device * sdev);  

ARGUMENTS

sdev
SCSI device to prevent medium removal
 

LOCKING

We must be called from process context; scsi_allocate_request may sleep.  

NOTES

We queue up an asynchronous ``ALLOW MEDIUM REMOVAL'' request on the head of the devices request queue, and continue.  

BUGS

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

If scsi_allocate_request fails for what ever reason, we completely forget to lock the door.


 

Index

NAME
SYNOPSIS
ARGUMENTS
LOCKING
NOTES
BUGS

This document was created by man2html, using the manual pages.
Time: 07:07:25 GMT, October 06, 2005