Re: [PATCH 2/2] ksmbd: centralize ksmbd_conn final release to plug transport leak
From: Namjae Jeon
Date: Sun Apr 26 2026 - 21:07:15 EST
> -
> - 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;
> }