I want to know HOW memory allocated for BIO gets free specific to RHEL 7.
I think, in RHEL 7 , bio->destructor field is removed from the bio structure.
So, how exactly the memory will be freed?
Thanks in Advance.!
I want to know HOW memory allocated for BIO gets free specific to RHEL 7.
I think, in RHEL 7 , bio->destructor field is removed from the bio structure.
So, how exactly the memory will be freed?
Thanks in Advance.!
The best way to know, why particular change is made in linux kernel, is to search through git journals in the Linux kernel sources:
git log -S bio_destructor_t -- include/linux/blk_types.h
This found that commit:
block: Kill bi_destructor
Now that we've got generic code for freeing bios allocated from bio pools, this isn't needed anymore.
This patch also makes bio_free() static, since without bi_destructor there should be no need for it to be called anywhere else.
See implementation of bio_free
function for know about freeing memory in bio.