Re: [PATCH 2/2] char_dev: order /proc/devices by major number

From: Greg Kroah-Hartman
Date: Fri Jun 16 2017 - 02:27:49 EST


On Thu, Jun 15, 2017 at 02:05:21PM -0600, Logan Gunthorpe wrote:
> Presently, the order of the char devices listed in /proc/devices is not
> entirely sequential. If a char device has a major number greater than
> CHRDEV_MAJOR_HASH_SIZE (255), it will be ordered as if its major were
> module 255. For example, 511 appears after 1.

Hey, nice fix, that was annoying!

Also looks like block devices have the same issue in this file, care to
fix that up too while you are there? :)

thanks,

greg k-h