]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] Correctly set the scsi host/msg/status bytes
authorMoger, Babu <Babu.Moger@netapp.com>
Tue, 24 Jan 2012 20:38:42 +0000 (20:38 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:59 +0000 (08:08 -0600)
commit9b847ec2cad5a17694683f99cd2a87ab3d2db3c6
tree883b9e253f755a5622c4c8ba250c86550e942fea
parent7b34d3ccfda18728dedc53eed791d15eb3b21679
[SCSI] Correctly set the scsi host/msg/status bytes

Resubmitting as my previous post had format issues and did not go llinux-scsi.
This patch changes the function to set_msg_byte, set_host_byte and
set_driver_byte to correctly set the corresponding bytes appropriately.

It will reset the original setting and correctly set it to the new value.  The
previous OR operation does not always set it back to new value. Look at patch
2/2 for an example.

Signed-off-by: Babu Moger <babu.moger@netapp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
include/scsi/scsi_cmnd.h