Re: [PATCH 1/1] staging: hv: Fix race condition on IC channel initialization (modified)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Wednesday, May 26, 2010 - 1:51 pm

On Wed, May 26, 2010 at 04:54:39PM +0000, Haiyang Zhang wrote:

Why is this an atomic_t?


What is the mb() call for?  Why is it necessary?  (hint, if you need it,
something else is really wrong...)

Something wierd happened with your indentation here, it doesn't line up
properly.  That call to VmbusChannelOpen() needs to go in a full tab,
not 4 spaces.

Please always run your patch through the checkpatch.pl script before
sending it to me.



What's with the "ic_" naming scheme here?  It should be "hv_" right?


As you are using this "ic_channel_ready variable only within the
vmbus_bus_init() call, why not just make it local to there?  Then
there's no need to do the create/init/wait/free sequence outside the
init call.

The init call should just do all of this for us, right?

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/1] staging: hv: Fix race condition on IC chan ..., Greg KH, (Wed May 26, 1:51 pm)