libmultipath: update waiter handling
authorHannes Reinecke <hare@suse.de>
Mon, 4 May 2009 14:46:58 +0000 (16:46 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 10:25:54 +0000 (12:25 +0200)
commit96f81469ff993b6063bb8829d9b336590510466d
treebf75a35a259f5f1172023a9629c919e44d447181
parent1e79548232cbe448d2fa22b3f1bdf6353f961c85
libmultipath: update waiter handling

The current 'waiter' structure accesses fields which belong
to the main 'mpp' structure, which has a totally different
lifetime. With this patch most of these dependencies are
removed and the 'waiter' structure can run independently
of the main 'mpp' structure, reducing the risk of
use-after-free faults.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/structs.c
libmultipath/structs.h
libmultipath/waiter.c
libmultipath/waiter.h