[lkml]   [2005]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.6.11-rc3-mm1 : can't insmod dm-mod
Laurent Riffard <> wrote:
> Le 04.02.2005 19:33, Andrew Morton a écrit :
> >
> >
> loading dm-mod module fails with this message :
> FATAL: Error inserting dm-mod
> (/lib/modules/2.6.11-rc3-mm1/kernel/drivers/md/dm-mod.ko): Device or resource busy
> The following line appears in dmesg :
> register_blkdev: failed to get major for device-mapper

You've enabled CONFIG_BASE_SMALL and so the major_names[] hashtable has
just one element. device-mapper uses dynamic major allocation, the range
of which is limited to the size of the top-level major_names[] array. You
ran out of slots and register_blkdev() failed.

So for now I guess we must drop base-small-shrink-major_names-hash.patch.

Al, that code looks rather crappy. Shouldn't we be using an idr tree or

Also, we can never generate a major number of zero if the caller passed in
major=0. How come?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:10    [W:0.401 / U:1.556 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site