Re: [PATCH v1] tty: n_tty: use kvzalloc/kvfree for line discipline data

From: Xin Chen

Date: Fri Aug 21 2026 - 04:06:44 EST


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/20260819135321.1444185-1-xin.chen2@xxxxxxxxxxxxxxxx/

Thanks for the review.

Xin