staging: hv: convert channel_mgmt.c to not call osd_schedule_callback
authorTimo Teräs <timo.teras@iki.fi>
Wed, 15 Dec 2010 18:48:09 +0000 (20:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Dec 2010 20:35:15 +0000 (12:35 -0800)
commit4b2f9abea52af3782d349080fca5e189b0693792
treea54b2ca87e97b0dedcd934b4db68af0a8a381329
parentbf6506f60c46c8a709df534408cc6d470df657ff
staging: hv: convert channel_mgmt.c to not call osd_schedule_callback

The additional abstraction is unneeded.

The three calls are assumed to not be pending simultaneously:
 - vmbus_onoffer queues work exactly once when a new channel is
   created, the channel is not attached to lists until the work
   is executed
 - vmbus_onoffer_rescind is received only when the channel is
   active it is enough to process the work once
 - free_channel is called exactly once when the channel is getting
   destroyed; I assumed that vmbus_process_rescind_offer cannot be
   pending while free_channel is called

Reviewed-By: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/channel_mgmt.c
drivers/staging/hv/channel_mgmt.h