On Fri, Jun 30, 2017 at 01:42:50PM -0700, bcache@xxxxxxxxxxxxxxxxxx wrote: > From: Jan Kara <jack@xxxxxxx> > > If blkdev_get_by_path() in register_bcache() fails, we try to lookup the > block device using lookup_bdev() to detect which situation we are in to > properly report error. However we never drop the reference returned to > us from lookup_bdev(). Fix that. This look ok, but I think that whole chunk of code should just go away - adding a lookup_bdev and resulting mess just for a slightly different error message is just insane.