]> www.infradead.org Git - users/hch/block.git/commit
md: simplify md_open md-lifetime-fixes
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Jul 2022 12:42:24 +0000 (14:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2022 06:59:23 +0000 (08:59 +0200)
commit24acd83f29892034df93ab7a85be248cd778a1c9
tree2b5b4e438bb73d181461201f9304d58daa6d1d54
parent5bc5a40b24eb81131869eed80438fe2aeacb269a
md: simplify md_open

Now that devices are on the all_mddevs list until the gendisk is freed,
there can't be any duplicates.  Remove the global list lookup and just
grab a reference.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/md/md.c