From the booklet of Rabbi David Shalom Naki, shlit"a: it is good to fast on the day of a parent’s passing, as the Shulchan Aruch records, for on that day the departed is judged, and the fast eases the soul. If the fast would reduce his Torah learning, it is better that he not fast, but keep a fast of speech, or arrange a public shiur. Rabbi Akiva Eiger wrote in his will that his children should not fast, but learn the whole day and night without interruption.