From: Gerald Schaefer Date: Thu, 21 Aug 2008 17:46:40 +0000 (+0200) Subject: [S390] dcssblk: fix race in dcssblk_add_store() X-Git-Tag: v2.6.27-rc5~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04f64b5756872b474d9429e3b6987ada10bb8012;p=pandora-kernel.git [S390] dcssblk: fix race in dcssblk_add_store() Concurrently adding the same segment may lead to duplicate device_register() calls, which will trigger an error in kobject code: "... don't try to register things with the same name in the same directory". This patch adds a check to avoid this. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed