# Re: \[PATCH v7 00/11\] extend task comm from 16 to 24

- From: Petr Mladek \<pmladek@suse.com\>
- Date: 2021-11-02 07:56:24 
- List: linux-perf-users
- Page: https://ratatoskr.run/linux-perf-users/2021/11/217534
- Thread: https://ratatoskr.run/linux-rdma/2021/11/217429/t.md

```text
On Tue 2021-11-02 09:26:35, Yafang Shao wrote:
> On Tue, Nov 2, 2021 at 9:18 AM Steven Rostedt [ref] wrote:
> > On Tue, 2 Nov 2021 09:09:50 +0800
> > Yafang Shao [ref] wrote:
> > >      Now we only care about kthread, so we can put the pointer into a
> > > kthread specific struct.
> > >      For example in the struct kthread, or in kthread->data (which may
> > > conflict with workqueue).
> >
> > No, add a new field to the structure. "full_name" or something like that.
> > I'm guessing it should be NULL if the name fits in TASK_COMM_LEN and
> > allocated if the name had to be truncated.
> >
> > Do not overload data with this. That will just make things confusing.
> > There's not that many kthreads, where an addition of an 8 byte pointer is
> > going to cause issues.
> 
> Sure, I will add a new field named "full_name", which only be
> allocated if the kthread's comm is truncated.

The plan looks good to me.

One more thing. It should obsolete the workqueue-specific solution.
It would be great to clean up the workqueue code as the next step.

Best Regards,
Petr
```
