Re: move the bdi from the request_queue to the gendisk

From
Qian Cai <hidden>
Date
2021-08-11 02:28:17
Also in
cgroups, linux-block, linux-fsdevel
Reply to
Christoph Hellwig, 2021-08-10

On 8/10/2021 4:02 PM, Christoph Hellwig wrote:
On Tue, Aug 10, 2021 at 03:36:39PM -0400, Qian Cai wrote:
quoted

On 8/9/2021 10:17 AM, Christoph Hellwig wrote:
quoted
Hi Jens,

this series moves the pointer to the bdi from the request_queue
to the bdi, better matching the life time rules of the different
objects.
Reverting this series fixed an use-after-free in bdev_evict_inode().
Please try the patch below as a band-aid.  Although the proper fix is
that non-default bdi_writeback structures grab a reference to the bdi,
as this was a landmine that might have already caused spurious issues
before.
This works fine with a quick test.
Thread (31 messages) 31 messages, 7 authors, last reply 2021-10-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help