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-16 11:14:18 +02:00
2007-07-31 15:39:39 -07:00
2007-04-01 10:10:04 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2007-10-24 08:55:40 +02:00
2007-05-06 09:33:11 -05:00
2007-10-12 14:51:56 -04:00
2007-10-12 14:49:22 -04:00
2007-10-22 21:19:53 +02:00
2006-09-12 17:12:31 -05:00
2007-10-22 21:19:53 +02:00
2007-10-22 21:19:53 +02:00
2007-10-22 21:19:53 +02:00
2007-10-17 21:56:14 -04:00
2007-10-22 21:19:53 +02:00
2007-10-12 14:51:44 -04:00
2007-05-31 17:30:04 -04:00
2007-10-19 11:53:33 -07:00
2006-09-12 17:12:31 -05:00
2007-10-19 11:53:42 -07:00
2007-10-22 21:19:53 +02:00
2007-10-16 11:14:19 +02:00
2007-10-12 14:52:46 -04:00
2007-07-18 11:16:32 -05:00
2007-10-12 14:52:46 -04:00
2007-07-14 19:12:15 -05:00
2007-10-12 14:52:46 -04:00
2007-07-31 10:44:01 -05:00
2007-10-24 08:55:40 +02:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00
2007-10-16 11:24:44 +02:00
2007-10-19 23:22:55 +02:00
2007-10-22 21:19:53 +02:00