]> Git Repo - linux.git/commit
bcache: don't pass a stack address to blkdev_get_by_path
authorChristoph Hellwig <[email protected]>
Thu, 8 Jun 2023 11:02:40 +0000 (13:02 +0200)
committerJens Axboe <[email protected]>
Mon, 12 Jun 2023 14:04:04 +0000 (08:04 -0600)
commit29499ab060fec044161be73fb0e448eab97b4813
treec970c77c1205ecb83e2c9ab00e96494aedb5152f
parentc889d0793d9dc07e94a5fddcc05356157fab00b7
bcache: don't pass a stack address to blkdev_get_by_path

sb is just an on-stack pointer that can easily be reused by other calls.
Switch to use the bcache-wide bcache_kobj instead as there is no need to
claim per-bcache device anyway.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
drivers/md/bcache/super.c
This page took 0.056932 seconds and 4 git commands to generate.