A series of failed prosecutions, from Lady Chatterly's Lover to Girls (Scream) Aloud, mean that writing literary porn is extremely unlikely to get you into trouble, almost regardless of the content.
I don't think anyone has ever been prosecuted for reading it.