Re: [PATCH 2/2] ksmbd: centralize ksmbd_conn final release to plug transport leak

Namjae Jeon
2026-04-27T01:07:03Z

> -
> - if (skip(tcon, fp, sess->user) ||
> - !atomic_dec_and_test(&fp->refcount)) {
> + saved_id = id;
What is the reason for backing up the id to saved_id?

> + if (!atomic_inc_not_zero(&fp->refcount)) {
> id++;
> write_unlock(&ft->lock);
> continue;
> }