Re: [PATCH v3 2/7] atm: add owner of push() callback to atmvcc
From: chas williams - CONTRACTOR
Date: Wed Nov 07 2012 - 14:05:30 EST
On Tue, 6 Nov 2012 23:16:57 +0100
Krzysztof Mazur <krzysiek@xxxxxxxxxxxx> wrote:
> The atm is using atmvcc->push(vcc, NULL) callback to notify protocol
> that vcc will be closed and protocol must detach from it. This callback
> is usually used by protocol to decrement module usage count by module_put(),
> but it leaves small window then module is still used after module_put().
>
> Now the owner of push() callback is kept in atmvcc and
> module_put(atmvcc->owner) is called after the protocol is detached from vcc.
>
> Signed-off-by: Krzysztof Mazur <krzysiek@xxxxxxxxxxxx>
Acked-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/