public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* scsi_cmnd data_buffer checksum
@ 2010-09-09  3:36 Anil kumar
  2010-09-09  8:00 ` Christof Schmitt
  0 siblings, 1 reply; 9+ messages in thread
From: Anil kumar @ 2010-09-09  3:36 UTC (permalink / raw)
  To: linux-kernel, linux-scsi


I am writing a checksum calculation of scsi_cmnd data buffer in the driver. 

I calculate the checksum of the scsi_cmd data buffer(request_buffer) in driver queuecommand.

Now when the command is completed from the hardware and before driver sends it back to mid-layer, I calculate the checksum again of the same scsi_cmd data_buffer again.

Sometimes the checksums don't match. I mean somehow looks like OS changed the scsi_cmd data_buffer(request_buffer) in the meantime when driver is working on the command.
I print the address of the scsi_cmd data_buffer (virtual address) and its same and the contents of the buffer is also same during both the calculations.
 
Can this happen?



      

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-09-10  3:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09  3:36 scsi_cmnd data_buffer checksum Anil kumar
2010-09-09  8:00 ` Christof Schmitt
2010-09-09  8:35   ` Anil kumar
2010-09-09  8:51     ` Christof Schmitt
2010-09-09  9:09       ` Anil kumar
2010-09-09  9:29         ` Christof Schmitt
2010-09-09 13:23         ` Martin K. Petersen
2010-09-09 19:34           ` Anil kumar
2010-09-10  3:33             ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox