Re: [Ocfs2-devel] [git patches] Ocfs2 and Configfs updates for2.6.27
From: Joel Becker
Date: Fri Jul 18 2008 - 18:23:41 EST
On Fri, Jul 18, 2008 at 10:48:03AM +0200, Louis Rilling wrote:
> > Linus,
> > Pull this to get the revert and the PTR_ERR() version:
> >
> > git://oss.oracle.com/git/jlbec/linux-2.6.git configfs-fixup-ptr-error
> >
> > It's tested with the same testing I did before - ocfs2 and netconsole.
>
> While this new version looks ok, it seems that it still allows client
> subsystems to return NULL in ->make_group()/->make_item(), in which case
> configfs_mkdir() turns the result into -ENOMEM. Maybe this is intended to
> smoothly update out-of-tree subsystems? I'd suggest to schedule a removal
> of this backward compatibility, and display an error log to encourage
> fixing the subsystems that still return NULL.
It is precisely to keep out-of-tree modules from crashing.
There's no easy way to make them know it changed otherwise :-) It could
certainly BUG or WARN before making the fixup.
Joel
--
"I'm drifting and drifting
Just like a ship out on the sea.
Cause I ain't got nobody, baby,
In this world to care for me."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@xxxxxxxxxx
Phone: (650) 506-8127
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/