]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: only install new AoE device once
authorEd L. Cashin <ecashin@coraid.com>
Fri, 8 Feb 2008 12:20:06 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:32 +0000 (09:22 -0800)
commitf3d204912bb90f1a59307626d8d8de502a0b4c28
treedc36d8716cc502aaac7e6159ffc1a307a4c5302d
parent12b45e7d80e7fa75e7f609ae769199560c3534a1
aoe: only install new AoE device once

An aoe driver user who had about 70 AoE targets found that he was hitting a
BUG in sysfs_create_file because the aoe driver was trying to tell the kernel
about an AoE device more than once.  Each AoE device was reachable by several
local network interfaces, and multiple ATA device indentify responses were
returning from that single device.

This patch eliminates a race condition so that aoe always informs the block
layer of a new AoE device once in the presence of multiple incoming ATA device
identify responses.

Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoecmd.c