[PATCH 1/4] staging: lustre: fixed signedness of some socklnd params
stefano.manni at gmail.com
Thu Nov 23 23:47:21 UTC 2017
On Thu, 2017-11-23 at 15:13 +0300, Dan Carpenter wrote:
> I've looked through this series and I feel like none of these are
> bugs. It's just about type safety and being consistent. Which are
> things. I'm not sure that I like the parts where we make the
> Here "nscheds" is the number of threads. How can we have a negative
> number? I think it should be unsigned. It's way more tricky to
> the rest of the code, and leave nscheds unsigned int but I think it's
> probably the right thing.
> dan carpenter
I've made the module param nsched signed because the
ksock_tunables.ksnd_nscheds (the real container) is signed too.
I definitely agree with you that it does not make sense to have a
negative number of threads.
In my opinion it's better to fix this inconsistency between the param
and the container and then try submit another patch to harmonize
signedness around the code.
More information about the devel