From: Jens Axboe <axboe@kernel.dk>
To: nick <xerofoify@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Question about error handling for the function,disk_add_events in genhd.c
Date: Mon, 22 Dec 2014 10:32:37 -0700 [thread overview]
Message-ID: <549855B5.6050805@kernel.dk> (raw)
In-Reply-To: <549854CB.3080707@gmail.com>
On 12/22/2014 10:28 AM, nick wrote:
> Greetings Again Jen,
> I am wondering about the fix me message here:
> /* FIXME: error handling */
> related to error handling. Seems the below code:
> if (sysfs_create_files(&disk_to_dev(disk)->kobj, disk_events_attrs) < 0)
> pr_warn("%s: failed to create sysfs files for events\n",
> disk->disk_name);
> handles this fine. I am going to remove the comment unless we need to
> rewrite this function.
Again, spewing a warning when the error triggers and marching is not
"handles this fine", it only qualifies as "doesn't blatantly ignore an
error". Please spend some time studying up on what error handling is,
I'm not even going to look at potential patches or further musings on
this topic until you have done that.
--
Jens Axboe
parent reply other threads:[~2014-12-22 17:32 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <549854CB.3080707@gmail.com>]
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=549855B5.6050805@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=xerofoify@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.