Don't think it is a good idea to integrate it into the kernel. It's only ever going to be called once per drive and the rest of the time it'll be taking up memory which could be put to better use.