From: Frank Pavlic Date: Thu, 12 May 2005 18:35:57 +0000 (+0200) Subject: [PATCH] s390: set online race in the lcs driver X-Git-Tag: v2.6.12-rc6~145^2~4^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f9d55b64a5c7193f8965c90ba62244ea3180b2;p=pandora-kernel.git [PATCH] s390: set online race in the lcs driver [patch 3/10] s390: set online race in the lcs driver. From: Michael Holzheu There is a race between lcs_stopcard() and lcs_open_device() which can lead to the error 'lcs: Error in starting channel, rc=-16'. lcs_open_device() is invoked when 'ifconfig up' is called due to a hotplug event, which is caused by register_netdev(). In parallel lcs_stopcard() is executed. Both functions are sending lcs commands. The second invocation fails with -EBUSY (-16) as return value. Move invocation of register_netdev() after invocation of lcs_stopcard to avoid the race. Signed-off-by: Frank Pavlic --- Reading git-diff-tree failed