The attached patch corrects the linux kernel reservation handling. Currently linux fails badly when presented with SCSI reservations in a clustered environment. The patch also completes Doug Gilbert's reset injection system in the sg driver. The patches have no effect on the main line SCSI code, but they are fairly essential to those of us working in clustering and using reservations for I/O fencing. I've run the patch through a 12 hour stress test in a two node cluster using the sym53c875 and aic7xxx (AHA 2944/UW) SCSI cards. James Bottomley