SANTA CLARA >> The 49ers kept alive an annual ritual of adding a veteran player, beating Tuesday’s NFL trade deadline to acquire defensive tackle Khalil Davis from the Houston Texans, a league source confirmed.

Davis’ arrival is not surprising considering the 49ers’ low stock of defensive tackles, having lost Javon Hargrave to a torn triceps in Week 3.

Davis (6-foot-1, 300 pounds) has played 27 games since breaking into the NFL as a 2020 sixth-round pick of the Bucs. That includes 24 games, 22 tackles, three sacks and one start since joining the Houston Texans in 2023 and reviving his career. He also had stints with the Indianapolis Colts (2021), Pittsburgh Steelers (2021, practice squad), the Bucs again (2022, practice squad), the Los Angeles Rams (2022, practice squad) and the 2023 Birmingham Stallions of the United States Football League.

The 49ers will still rely heavily on free-agent additions Maliek Collins and Jordan Elliott, with other relief available via Kevin Givens, Evan Anderson and practice-squad options T.Y. McGill and Nesta Jade Silvera. Expected to rejoin the fray as an interior pass rusher is Yetur Gross-Matos, whose recovery from knee surgery had him working on the side Monday.

While the 49ers got their deal done for Davis minutes before Tuesday’s deadline, there would be no reunion with past 49ers defensive linemen such as D.J. Jones (Broncos), Arden Key (Titans) or Sebastian Joseph-Day (Titans).