I have written once or twice about the use of disambiguators in scripture. These are the little bits of information the Bible’s writers supply in order to help us distinguish James (the brother of Christ) from James (the brother of John) or Mary (Magdalene) from Mary (the mother of Jesus).
The Benaiah who served David and Solomon is consistently called the son of Jehoiada. Good to know. With that disambiguator appended to his name it’s impossible to confuse him with two later Benaiahs mentioned by Ezra and Ezekiel, or with Benaiah of Pirathon, another man of valor in David’s service.