Re: block: add back the bd_holder_dir reference in bd_link_disk_holder

2 messages, 2 authors, 2021-08-21 · open the first message on its own page

Re: block: add back the bd_holder_dir reference in bd_link_disk_holder

From: Mike Snitzer <hidden>
Date: 2021-08-20 17:20:58

On Fri, Aug 20 2021 at  5:49P -0400,
Christoph Hellwig [off-list ref] wrote:
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: fbd9a39542ec ("block: remove the extra kobject reference in bd_link_disk_holder")
Reported-by: Tushar Sugandhi <redacted>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Looks good, thanks.
(btw, your linux-block cc had a typo, Jens are you able to pick this fix up regardless?)

Reviewed-by: Mike Snitzer <redacted>

Re: block: add back the bd_holder_dir reference in bd_link_disk_holder

From: Jens Axboe <axboe@kernel.dk>
Date: 2021-08-21 03:15:01

On 8/20/21 11:20 AM, Mike Snitzer wrote:
On Fri, Aug 20 2021 at  5:49P -0400,
Christoph Hellwig [off-list ref] wrote:
quoted
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: fbd9a39542ec ("block: remove the extra kobject reference in bd_link_disk_holder")
Reported-by: Tushar Sugandhi <redacted>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Looks good, thanks.
(btw, your linux-block cc had a typo, Jens are you able to pick this fix up regardless?)
Yep, just did it manually.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help