commit | 46652a861b46cc62e9d983d5cf6d9532cd6fccab | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Mon Nov 10 09:34:29 2014 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Tue Nov 11 17:09:57 2014 +1030 |
tree | 94e9e81bf631f365cc87a3996e615c19b1dd3b83 | |
parent | cbd7f8d6825c6900daa9d6f1b363b592ea9ee1fa [diff] |
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 <mst@redhat.com> Reviewed-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>