Fix callback bug in connector
commit7644d8b697ad46a666be8d254e4f89fd6a4b5b3e
authorPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Mar 2007 02:45:12 +0000 (7 18:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 13 Mar 2007 18:26:47 +0000 (13 11:26 -0700)
treebc45d86526adf5ae36c00865c1b718d2de9b7757
parente0b61b96bd5c5339687b9e4d2b5cb96e6ee621a9
Fix callback bug in connector

[CONNECTOR]: Bugfix for cn_call_callback()

When system under heavy stress and must allocate new work
instead of reusing old one, new work must use correct
completion callback.

Patch is based on Philipp's and Lars' work.
I only cleaned small stuff (and removed spaces instead of tabs).

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/connector/connector.c