I don't know that it works for everyone...and I have no "first hand" knowledge other than educating a few ex-girlfriends who appreciated the advice...
But if you keep swallowing...or trying to swallow, it will stop the gag reflex at least temporarily. And the sensation feels good to your partner...a kind of "massage". You can start out taking it all the way down for a short amount of time, but you'll find that you'll soon be able to give a world class deep throat! (Practice makes perfect!)
This is the technique medical professionals use when they have to put a tube down someone's throat who is conscious. They always instruct the patient to keep trying to swallow. It seems to work.
Best of luck