mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
scst_vdisk: Avoid that setting numa_node_id causes unloading scst_vdisk to hang (merge r7927 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -7762,6 +7762,13 @@ static void vdev_check_node(struct scst_vdisk_dev **pvirt_dev, int orig_nodeid)
|
||||
}
|
||||
*v = *virt_dev;
|
||||
kfree(virt_dev);
|
||||
/*
|
||||
* Since the address of the virtual device changed, update all
|
||||
* pointers in the virtual device that point to the virtual
|
||||
* device itself.
|
||||
*/
|
||||
INIT_WORK(&virt_dev->vdev_inq_changed_work,
|
||||
vdev_inq_changed_fn);
|
||||
*pvirt_dev = v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user