]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] ipr: fix lun assignment and comparison
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Thu, 4 Nov 2010 16:35:58 +0000 (09:35 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:23:54 +0000 (12:23 -0600)
commitac83988f5b6ffbd1b8039a59e399565d08234fd7
treea39c519e78130b5ee3f526763794213003ea560a
parent31d882cc7abafbfc3be7f38c716b328694c86476
[SCSI] ipr: fix lun assignment and comparison

The lun value was not getting set up correctly for all devices attached to the
new 64 bit adapters.  The fix is to move the logic to earlier in the
ipr_init_res_entry routine such that the value does get set correctly for all
devices.

Then the ipr_is_same_device comparison function was using the wrong lun value
in the logic for the new adapters.  Change this to use the correct lun value.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ipr.c