1SRP_RECONNECT_RPORT(9) SCSI mid layer SRP_RECONNECT_RPORT(9)
2
3
4
6 srp_reconnect_rport - reconnect to an SRP target port
7
9 int srp_reconnect_rport(struct srp_rport * rport);
10
12 rport
13 -- undescribed --
14
16 Blocks SCSI command queueing before invoking reconnect such that
17 queuecommand won't be invoked concurrently with reconnect from outside
18 the SCSI EH. This is important since a reconnect implementation may
19 reallocate resources needed by queuecommand.
20
22 - This function neither waits until outstanding requests have finished
23 nor tries to abort these. It is the responsibility of the reconnect
24 function to finish outstanding commands before reconnecting to the
25 target port. - It is the responsibility of the caller to ensure that
26 the resources reallocated by the reconnect function won't be used while
27 this function is in progress. One possible strategy is to invoke this
28 function from the context of the SCSI EH thread only. Another possible
29 strategy is to lock the rport mutex inside each SCSI LLD callback that
30 can be invoked by the SCSI EH (the scsi_host_template.eh_*() functions
31 and also the scsi_host_template.queuecommand function).
32
34 James Bottomley <James.Bottomley@hansenpartnership.com>
35 Author.
36
37 Rob Landley <rob@landley.net>
38 Author.
39
41Kernel Hackers Manual 3.10 June 2019 SRP_RECONNECT_RPORT(9)