On Tue, Sep 20, 2022 at 10:39:36AM +0800, Ye Bin wrote: > Rename md_ioctl_valid to md_ioctl_check, check whether the command is valid > and whether the permission passes. I think this going into entirely the wrong direction. The right way to go is to split each handler into a separate function, and move those checks there. I have a WIP series for that which I just need to dust off.