]> err.no Git - linux-2.6/commit
[SCSI] ibmvscsi: prevent scsi commands being sent in invalid state
authorDave C Boutcher <boutcher@cs.umn.edu>
Thu, 23 Mar 2006 19:47:07 +0000 (13:47 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 13 Apr 2006 15:13:16 +0000 (10:13 -0500)
commit9b833e428ad24dc7cec2c0c7e6898caa91449c95
tree6b65f8372acb4829c01c58ac0890e05bd6e35354
parent18c49b8cd69c360735df2cc6eeeb2593c01a81e8
[SCSI] ibmvscsi: prevent scsi commands being sent in invalid state

There is a window where we can be re-enabling an adapter, but
still allow SCSI commands to be sent to the target.  This fix
sets our window (request_limit) to -1 as soon as we know the
adapter is being reenabled, and closes a very teeny tiny
window where we could set the window back to 1 before we
grab a lock.

Signed-off-by: Dave Boutcher <sleddog@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ibmvscsi/ibmvscsi.c