From: Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
To: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: sfrench-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [cifs srcaddr-v4] cifs: Allow binding to local IP address.
Date: Wed, 01 Sep 2010 22:07:29 -0700 [thread overview]
Message-ID: <4C7F3111.80808@candelatech.com> (raw)
In-Reply-To: <20100901203836.2628ce57-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
On 09/01/2010 05:38 PM, Jeff Layton wrote:
>> No warning, it always returns something since the default case catches
>> all others. If I did put the return at the end, then the compiler wouldn't
>> catch a case where I forgot to return from one of the case statements,
>> but it's not overly complex code, so I don't care so much either way.
>> Plz let me know if you still want it at the end.
>>
>> I also think the WARN_ON is valid, because it can only be a coding bug
>> that hits that state, and I'd like it to be as loud as possible while
>> still allowing the user to continue. There are automated tools that
>> catch WARN_ON output and post to kernel bug trackers, for instance.
>>
>> If you still want a cERROR, I can do that..but I prefer to not waste
>> the space.
>>
>
> It's definitely a coding bug if that fires, but a WARN_ON will mean
> nothing to users. It looks scary and is virtually indistinguishable
> from an oops. We'll get a stack trace, but it's unlikely to tell us
> much.
>
> At that point, you might as well make it a BUG(). At least that way,
> we might get a core dump if it fires.
I'd like to wrap this up. Please let me know exactly what you want there
and I'll make it so.
Thanks,
Ben
--
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-09-02 5:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 19:00 [cifs srcaddr-v4] cifs: Allow binding to local IP address Ben Greear
[not found] ` <1283367606-14030-1-git-send-email-greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2010-09-01 21:14 ` Jeff Layton
[not found] ` <20100901171418.44685b74-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-09-01 21:31 ` Ben Greear
[not found] ` <4C7EC614.6020505-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2010-09-02 0:38 ` Jeff Layton
[not found] ` <20100901203836.2628ce57-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-09-02 5:07 ` Ben Greear [this message]
[not found] ` <4C7F3111.80808-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2010-09-02 10:56 ` Jeff Layton
[not found] ` <20100902065602.6a62825c-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-09-03 4:02 ` Steve French
[not found] ` <AANLkTi=ezVf0b1Cu+HBKRb7Sns5+bDeFwpV649Ub_RAs-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-03 4:24 ` Ben Greear
[not found] ` <AANLkTimo-jibAy-D6j1oVy0d5-VwXrtz=Cnxvv6=g5a_@mail.gmail.com>
[not found] ` <4C81724C.9030702@candelatech.com>
[not found] ` <AANLkTimGmcSeQEfS_u221RBzR04L_q25kWO31zvouxFM@mail.gmail.com>
[not found] ` <AANLkTimGmcSeQEfS_u221RBzR04L_q25kWO31zvouxFM-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-03 22:21 ` Steve French
[not found] ` <AANLkTins-m95_tjyxgQGjzDQ+bMehGpAMinAKap_pPF1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-03 22:27 ` Ben Greear
2010-09-08 17:27 ` smb2 configuration Ben Greear
[not found] ` <4C87C793.3040800-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2010-09-08 18:35 ` Ben Greear
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C7F3111.80808@candelatech.com \
--to=greearb-my8/4n5vti7c+919tysfda@public.gmane.org \
--cc=jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sfrench-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox