在 2022/4/26 3:02, Jason Gunthorpe 写道:
On Mon, Apr 25, 2022 at 07:47:23AM +0800, Yanjun Zhu wrote:
在 2022/4/22 23:57, Pearson, Robert B 写道:
Use of rcu_read_lock solves this problem. Rcu_read_lock and spinlock on same data can
Co-exist at the same time. That is the whole point. All this is going away soon.
This is based on your unproved assumption.
No, Bob is right, RCU avoids the need for a BH lock on this XA, the
only remaining issue is the AH creation atomic call path.
If RCU is used, the similar issues like AH creation atomic call path
will become more.
Zhu Yanjun
Jason