Is there a reason we don't have kvfree_rcu()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kvfree() is a superset of kfree(), so there's nothing obvious stopping 
kfree_rcu() from simply changing to kvfree() and everything will keep 
working.

I'd probably add a kvfree_rcu() alias, just for documentation's sake and
to make code that depends on the new feature explode at compile time, but
it could be identical behind the scenes.

There's an existing user in mm/list_lru.c already.

I was just thinking of using kvmalloc() in a module, and realized that the 
lack of a core kvfree_rcu() helper meant I'd have to synchronize_rcu() on 
module unload.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux