This isn't about Kashmir. For them it's an eternal struggle until the end of times until they triumph over the infidels (in the context of South Asia - that's us). These are the terms that Muslims usually think in when they are engaged in conflict with another people. So yes, you're right, it's a cyclical conflict, and at times it even feels futile, as if we are condemned to engage in tit-for-tat raids losing 3-4 guys at a time indefinitely; but this is the way the Pakistanis have made it. They've made 3 attempts to seize Kashmir, they've fomented at least 2 insurgencies to break up India, and continue to engage in terrorism against our civilians. We have made plenty of attempts and overtures for peace, but the Pakistanis are not going to leave us in peace, and they will force us to play their game - not playing is not at option. So we have no choice but to play their game, and be even better at it than them - the way Israel has learned to do.
The Pakistani mindset seems to be one that will never be able to accept the existence of a Hindu India. This really isn't even about Kashmir, go ahead and give them all of Kashmir today itself, tomorrow we will still be fighting on some other pretext. The real agenda is to wipe out infidels and restore what they think was glorious Islamic rule over the entire subcontinent. The pure, concentrated hate and contempt they have for us as a nation, race (including a lot of not so flattering stereotypes about us, and this fantasy of racial superiority for them), religion, and culture is truly deep and seemingly incurable.
I know it sounds depressing, but from what I see, I'm convinced this is a fight to the finish. Unless all of Pakistan's mindset and ideological system were to miraculously change overnight, the only way this conflict ends is when either the Pakistanis achieve what they really want by wiping us out, or when they end up destroying themselves in the process (which looks more likely, take the example of how they are willfully selling and enslaving their country and their future through CPEC to get a leg up on us). So if someone has to be wiped out to end this cyclical, senseless conflict; I am of the belief that better them than us.