Re: Major numbers reclaiming for make_dev/MAJOR_AUTO

2003-09-26 Thread Poul-Henning Kamp
Hi Stefan, Your patch will work OK in a lot of settings, but there are unfortunately also some very nasty cases where it will fail miserably because refcounting dev_t's is not safe yet. There are a few remaining issues to deal with before we can properly refcount dev_t's, and that is more or

Major numbers reclaiming for make_dev/MAJOR_AUTO

2003-09-17 Thread Stefan Farfeleder
Hi, attached is a patch that tries to keep track of the major numbers that were assigned automatically by make_dev() if you use MAJOR_AUTO. The number of times make_dev() was called with this major number is stored in the reserved_majors_refcnt array, the entry is decreased again if you call