So there is Kai, which releases you from Genjutsu in general.
And there is also the Nagashi...do you know why it releases you from Genjutsu? Why can Jinchuurikis release themselves from Genjutsu?
Also, lastly, which Doujutsus are Genjutsus ineffective on and why?