Re: [PATCH 2/4] chardev: Increment cdev reference count when i_cdev references it

From: Al Viro
Date: Tue Nov 04 2014 - 11:03:12 EST


On Tue, Nov 04, 2014 at 04:55:43PM +0100, Jan Kara wrote:
> > That consequence looks broken, IMO.
> Hum, it already behaves for block devices that way (and noone complained
> - but admittedly block devices tied to strange modules are less common than
> character devices). Also rmmod isn't that common IMO, but I see your point
> that it's unintuitive behavior.

Umm... Since when? The last time I looked, bdev module refcounts were
tied to struct gendisk, not to struct block_device.
--
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/