'\" t .\" Title: srp_reconnect_rport .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "SRP_RECONNECT_RPORT" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" srp_reconnect_rport \- reconnect to an SRP target port .SH "SYNOPSIS" .HP \w'int\ srp_reconnect_rport('u .BI "int srp_reconnect_rport(struct\ srp_rport\ *\ " "rport" ");" .SH "ARGUMENTS" .PP \fIrport\fR .RS 4 SRP target port\&. .RE .SH "DESCRIPTION" .PP Blocks SCSI command queueing before invoking \fBreconnect\fR such that \fBqueuecommand\fR won\*(Aqt be invoked concurrently with \fBreconnect\fR from outside the SCSI EH\&. This is important since a \fBreconnect\fR implementation may reallocate resources needed by \fBqueuecommand\fR\&. .SH "NOTES" .PP \- This function neither waits until outstanding requests have finished nor tries to abort these\&. It is the responsibility of the \fBreconnect\fR function to finish outstanding commands before reconnecting to the target port\&. \- It is the responsibility of the caller to ensure that the resources reallocated by the \fBreconnect\fR function won\*(Aqt be used while this function is in progress\&. One possible strategy is to invoke this function from the context of the SCSI EH thread only\&. Another possible strategy is to lock the rport mutex inside each SCSI LLD callback that can be invoked by the SCSI EH (the scsi_host_template\&.eh_*() functions and also the scsi_host_template\&.\fBqueuecommand\fR function)\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br