Re: [PATCH v3 2/7] atm: add owner of push() callback to atmvcc

2012-11-07 Thread chas williams - CONTRACTOR
On Tue, 6 Nov 2012 23:16:57 +0100 Krzysztof Mazur 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

[PATCH v3 2/7] atm: add owner of push() callback to atmvcc

2012-11-06 Thread Krzysztof Mazur
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