Re: [PATCH 2/2] Staging: lustre: lnet: lib-move return of an errno should typically be negative (ie: return -EAGAIN)
From: Nilesh Kokane
Date: Fri Oct 23 2015 - 08:10:15 EST
On Fri, Oct 23, 2015 at 5:10 PM, Dilger, Andreas
<andreas.dilger@xxxxxxxxx> wrote:
> On 2015/10/22, 22:30, "Nilesh Kokane" <nilesh.kokane05@xxxxxxxxx> wrote:
>>Fixed- Return of an errno should typically be negative (ie: return
>>-EAGAIN)
>
> Nak. Please do not change these function return values. They are
> converted as necessary by the callers before returning to userspace, but
> allow the code to distinguish between errors generated internally or from
> lower networking layers.
>
> As you will note, many of them are explicitly annotated with comments that
> they are returning positive values. The patch as it stands would totally
> break the code.
Ok. I'll take care next time.
--
//Nilesh Kokane
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/