Genjutsu Release restrictions:
►A Genjutsu is a disruption in your own chakra flow that messes with your senses and makes you experience an illusion. To dispel it you need to create a stronger disruption (or unbalance/fluctuation) that will clear the one forcefull put upon you and leave your chakra on its normal state. So basically, there is only one way to dispel genjutsu: disrupting, disturbing or unbalancing (all words you can use) your chakra flow.
Now, this can be done in 3 basic ways:
2- Altering the balance between physical and spiritual energies in your chakra by disturbing your spiritual energy. This is done by your sheer will power. Its done by forcefully creating a surge of chakra in your body by spiking your spiritual energy through will power alone, forcing yourself to mold and channel your chakra in a way that will either halt the chakra flow or disturb it. It can be done in 2 ways: through a technique named Kai or through techniques that produce a high surge of chakra on your chakra flow. In this last case, you need to have a technique that is at least one rank higher than the genjutsu set upon you for the case of elemental techinques, or 2 ranks for the case of raw chakra techniques. An example of this is Raiton: Chidori Nagashi, an A-Rank full body technique that requires no hand seal and can dispel up to B-Rank Genjutsu set upon you.
Another example is the opening of one of the Eight Inner Gates. Upon opening, the sudden release of chakra disturbs any genjutsu affecting you up to the same rank as the technique of the gate.