Robert Jennings 3c887e8a1a [SCSI] ibmvscsi: Prevent IO during partner login
By setting the request_limit in send_srp_login to 1 we allowed login
requests to be sent to the server adapter.  If this was not an initial
login, but was a login after a disconnect with the server, other I/O
requests could attempt to be processed before the login occured.  These
I/O requests would fail, sometimes resulting in filesystems getting
marked read-only.

To address this we can set the request_limit to 0 while doing the login
and add an exception where login requests, along with task management
events, are always passed to the server.

There is a case where the request_limit had already reached 0 would result
in all events being sent rather than returning SCSI_MLQUEUE_HOST_BUSY; this
has also been fixed by this patch.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2007-11-03 12:10:36 -05:00
..
2007-10-17 08:42:52 -07:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-10-20 00:47:32 +02:00
2007-10-20 01:34:40 +02:00
2007-10-23 09:49:29 +02:00
2007-10-24 05:16:25 -04:00
2007-10-20 01:55:58 +02:00
2007-10-25 15:02:50 +10:00
2007-10-20 01:34:40 +02:00
2007-10-20 01:34:40 +02:00
2007-10-27 14:47:20 +02:00
2007-10-23 09:49:31 +02:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 01:34:40 +02:00
2007-10-20 15:04:06 -07:00
2007-10-16 21:04:11 -04:00
2007-10-17 08:42:57 -07:00
2007-10-25 12:18:46 -07:00
2007-10-23 20:35:13 +00:00
2007-10-23 15:49:54 +10:00