mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
dax: unmap/truncate on device shutdown
Invalidate all mappings of a device-dax instance when the device is unregistered. Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
3bc52c45ba
commit
9dc1e4927b
1 changed files with 1 additions and 0 deletions
|
|
@ -550,6 +550,7 @@ static void unregister_dax_dev(void *dev)
|
|||
*/
|
||||
dax_dev->alive = false;
|
||||
synchronize_rcu();
|
||||
unmap_mapping_range(dax_dev->inode->i_mapping, 0, 0, 1);
|
||||
cdev_del(cdev);
|
||||
device_unregister(dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue