Thread (22 messages) 22 messages, 4 authors, 2020-03-07

Re: [PATCH v2 3/7] bdi: protect device lifetime with RCU

From: Tejun Heo <tj@kernel.org>
Date: 2020-03-04 17:05:46
Also in: linux-fsdevel

Hello,

It might be better to put this patch at the end rather than in the
middle so that when this patch is applied things are actually fixed.
+struct bdi_rcu_device {
+	struct device dev;
+	struct rcu_head rcu_head;
+};
(cc'ing Greg)

Greg, block layer switches association between backing_device_info and
its struct device and needs to protect it with RCU. Yufen did so by
introducing a wrapping struct around struct device like above. Do you
think it'd make sense to just embed rcu_head into struct device and
let put_device() to RCU release by default?

Thanks.

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