[SCSI] iscsi transport: use atomic for session_nr allocations
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 28 Feb 2007 23:32:18 +0000 (17:32 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 11 Mar 2007 16:27:28 +0000 (11:27 -0500)
commit41be14442213b6dbeea3cba2ed18a2923666278c
treea8796ed6c02049542a85099550e1c373d6ee41ca
parentbf32ed33e97ac7905fa5a2bf49a634c2eaf62457
[SCSI] iscsi transport: use atomic for session_nr allocations

qla4xxx and iscsi_tcp or iser could be creating
sessions at the same time, so make session_nr id
allocation atomic.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_iscsi.c