* Re: Question about error handling for the function,disk_add_events in genhd.c
[not found] <549854CB.3080707@gmail.com>
@ 2014-12-22 17:32 ` Jens Axboe
0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2014-12-22 17:32 UTC (permalink / raw)
To: nick, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread