Re: [PATCH v1] tty: n_tty: use kvzalloc/kvfree for line discipline data
Xin Chen <[email protected]>
| Newsgroups | org.kernel.vger.linux-serial,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 21, 2026, Greg KH wrote: > But it's not consuming them "unnecessarily" as the memory is needed. > Why not fix the root problem here of having this be called so many times > that you are running out of memory? > > And why isn't memory being reclaimed properly if we do not have any left > in that free list? The allocation can sleep, so it should be always > succeeding if the system isn't truely out of memory, as you imply it is > not. You raise valid points. I am abandoning this patch. After further investigation, I followed your suggestion and fixed the root cause in the Bluetooth layer instead. That fix has since been applied upstream: https://lore.kernel.org/all/[email protected]/ Thanks for the review. Xin