Re: [PATCH 6/6] staging: hv: Gracefully handle SCSI resets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, August 3, 2010 - 10:47 am

On Tue, Aug 03, 2010 at 05:31:56PM +0000, Hank Janssen wrote:

Is this a problem for all older versions as well?  If so, should it be
backported to the -stable kernel releases?


Trailing whitespace :(


Can't this be a bool?


Why add a commented out line?  Especially one that is incorrect?  :)


Don't return here, jump to the end of the function and return there.
That way you only have one lock/unlock pair and it's much easier to
maintain and audit over time that you got everything correct.


What's ever going to get us out of this loop?  You need a fall-back in
case this read never succeeds.

And why an atomic value if you have a lock protecting it?  That's major
overkill and is probably not needed.

thanks,

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

Messages in current thread:
[PATCH 6/6] staging: hv: Gracefully handle SCSI resets, Hank Janssen, (Tue Aug 3, 10:31 am)
Re: [PATCH 6/6] staging: hv: Gracefully handle SCSI resets, Greg KH, (Tue Aug 3, 10:47 am)