From: Joe Eykholt Date: Tue, 16 Jun 2009 06:22:14 +0000 (-0700) Subject: fix race that can give duplicate host number X-Git-Tag: v2.6.31-rc1~32^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30c9afa6cc477f6f21f8a0b36f3b81080941a0c9;p=pandora-kernel.git fix race that can give duplicate host number Just once, two fcoe instances got the same host number from scsi_add_host(). Use atomic_t and atomic_inc_return() to get next host number. Subtract 1, so that scsi_host still starts with 0. [jejb: added comment about unusual subtraction] Signed-off-by: Joe Eykholt Signed-off-by: James Bottomley --- Reading git-diff-tree failed