What is the origin of the phrase catch 22?

From the American author Joe Heller. the title of his 1961 novel. It is a provision in army regulations that a soldier can be relieved of active duty because he is mentally unfit to fight. But, any soldier who can ask this question must be mentally sound and thus must fight.