]> git.baikalelectronics.ru Git - kernel.git/commit
block: add back the bd_holder_dir reference in bd_link_disk_holder
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Aug 2021 09:49:29 +0000 (11:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 21 Aug 2021 03:14:26 +0000 (21:14 -0600)
commitd2c12024b57c025716bb09c564061747d555a17b
treeec34c2e6ee2d2ed804682780b5efb8cebf3e86bf
parent26330d5eb60a36a2e79f0fa68ed7803afe02170d
block: add back the bd_holder_dir reference in bd_link_disk_holder

This essentially reverts "block: remove the extra kobject reference in
bd_link_disk_holder".  That commit dropped the extra reference because
the condition in the comment can't be true.  But it turns out that
comment did not actually describe the problematic situation, so add
back the extra reference and document it properly.

Fixes: d4d4fbfa47a6 ("block: remove the extra kobject reference in bd_link_disk_holder")
Reported-by: Tushar Sugandhi <tusharsu@linux.microsoft.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/holder.c