Hello, these two patches fix block device claiming for bcache broken by recent Christoph's changes to blkdev_get_*() functions and also cleans up the layering violation inside bcache which was the underlying cause of the breakage. This time I've actually tested various modified error handling paths (which was good because one of them was indeed wrong!). Jens, please consider merging these fixes before sending Linus a pull request with blkdev changes. Changes since v1: * Fix compile breakage spotted by 0-day * Fix error handling path when the second blkdev_get_by_dev() fails * Fix commit message of patch 2/2 Honza Previous versions: Link: http://lore.kernel.org/r/20230621162024.29310-1-jack@xxxxxxx # v1