From: Michael S. Tsirkin Date: Sun, 9 Nov 2014 23:04:29 +0000 (+1030) Subject: virtio_blk: fix race at module removal X-Git-Tag: omap-for-v3.19/fixes-rc1~52^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46652a861b46cc62e9d983d5cf6d9532cd6fccab;p=pandora-kernel.git virtio_blk: fix race at module removal If a device appears while module is being removed, driver will get a callback after we've given up on the major number. In theory this means this major number can get reused by something else, resulting in a conflict. To fix, cleanup in reverse order of initialization. Signed-off-by: Michael S. Tsirkin Reviewed-by: Ming Lei Signed-off-by: Rusty Russell --- Reading git-diff-tree failed