Re: [PATCH 8/9] ib_srpt: Convert srp_max_rsp_size into per port configfs attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2011-10-24 at 22:16 +0200, Bart Van Assche wrote:
> On Mon, Oct 24, 2011 at 9:49 PM, Nicholas A. Bellinger
> <nab@xxxxxxxxxxxxxxx> wrote:
> > On Mon, 2011-10-24 at 21:44 +0200, Bart Van Assche wrote:
> >> Also, isn't kstrto*() preferred over strict_strto*() ?
> >
> > Not AFAIK.
> 
> This is what I found in the description of commit 33ee3b2:
> 
>     kstrto*: converting strings to integers done (hopefully) right
> 
>     1. simple_strto*() do not contain overflow checks and crufty,
>        libc way to indicate failure.
>     2. strict_strto*() also do not have overflow checks but the name and
>        comments pretend they do.
>     3. Both families have only "long long" and "long" variants,
>        but users want strtou8()
>     4. Both "simple" and "strict" prefixes are wrong:
>        Simple doesn't exactly say what's so simple, strict should not exist
>        because conversion should be strict by default.
> 
>     The solution is to use "k" prefix and add convertors for more types.
>     Enter
>         kstrtoull()
>         ...

Fair enough.  I'll convert this separately after the merge considering
it's a very minor improvement, and not a bugfix.

--nab



--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux