]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi: fix session age rollover and remove cid encoding
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 31 Jan 2008 19:36:53 +0000 (13:36 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:37 +0000 (18:02 -0600)
commit85fea0c8e8b542510fc05491f95c1e515bed676b
tree48d7c5aeb3b765284dcc3d8685ed6ea6aed350cb
parent0d5499d8c48da5b54584227b37e8d5cfe3355a39
[SCSI] libiscsi: fix session age rollover and remove cid encoding

The session age mask is only 4 bits, but session->age is 32. When
it gets larger then 15 and we try to or the bits some bits get
dropped and the check for session age in iscsi_verify_itt is useless.

The ISCSI_CID_MASK related bits are also useless since cid is always
one.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c
include/scsi/iscsi_proto.h
include/scsi/libiscsi.h