Re: [PATCH v2 2/2] docs/zh_CN: Add RCU/whatisRCU.rst Chinese translation

From: Weijie Yuan

Date: Wed Nov 25 2026 - 08:25:54 EST


On Wed, Nov 25, 2026 at 09:14:22PM +0800, Bruce Song wrote:
> On 11/25/2026 11:43 AM, Weijie Yuan wrote:
> > On Tue, Nov 24, 2026 at 10:23:50PM +0800, Bruce Song wrote:
> >
> > [...]
> >
> > > > > +:翻译:
> > > > > +
> > > > > + 宋雄微 Xiongwei Song <xiongwei.song@xxxxxxxxx>
> > > > > +
> > > > > +:校译:
> > > > > +
> > > > > +.. _zh_cn_whatisrcu_doc:
> > > >
> > > >
> > > > Please double check all the references. If one reference is not referred
> > > > from other places, please remove it in the translation.
> > >
> > > Ok, I will do that.
> >
> > Let's make it a rule or instruction, shall we?
> >
> > I didn't find any specific rules for label usage in doc-guide dir. (only
> > no more top-level label on list) But I suspect there must be unused
> > labels in English docs.
> >
> > We either:
> >
> > (1) make it consistent, i.e. keep adding unused labels.
>
> I feel like this one is better. Maybe the unsued labels will be used in the
> future?
>
> >
> > or
> >
> > (2) check usused labels and do not create new labels for it.
> >
> > 1 may be easier for manual translating jobs that you don't need to check
> > every label manually. You just need to add a '_zh' before each original
> > label. But apparently this will create tons of unused labels. So, no?
> >
> > 2 may costs more attention, but I guess agents could handle this
> > nowadays with proper prompts.
> >
> > I forgot to mention this thing in Daniel's series [*], shall we mention
> > this now, or send a RFC patch after they get merged?
> >
> > And also, add a rule for English docs that _do_not_ write a label which
> > is not used? This will make our job easier.
> >
> > [*] https://lore.kernel.org/linux-doc/20261119041009.63651-1-danielmaraboo@xxxxxxxxx/
> >
> >
> > [...]
> >
> >
> > > > > +概括起来如下:
> > > > > +
> > > > > +-    使用rcu_read_lock()和rcu_read_unlock()守护RCU读端临界区。
> > > > > +
> > > > > +-    在一个RCU读端临界区之内, 使用rcu_dereference()解引用RCU保护的指针。
> > > > > +
> > > > > +-    使用可靠的设计(例如锁或信号量)保持在互相干扰的情况下并发更新。
> > > >
> > > >
> > > > |The original says to use locks or semaphores to prevent concurrent
> > > > updates from interfering with each other. Please change this to “使用可
> > > > 靠的设计(例如锁或信号量)防止并发更新互相干扰”。|
> > >
> > > The verb in original doc is "keep", and the objective is "updates" here.
> > > IMO, "prevent" has changed the original meaning, and the objective has been
> > > changed to "interfering with each other". Or do you have any other thoughts?
> >
> > In my dictionary, "keep A from doing B" means "防止 A 做 B",
> > so something like:
> >
> > Use some solid design (such as locks or semaphores) to keep
> > concurrent updates from interfering with each other.
> >
> > 采用可靠的同步机制(例如锁或信号量),防止并发更新相互干扰。
>
> I tried the google translator, and the translation looks similar with the
> above one. But one thing I'd like to mention is maybe "采用可靠的设计" is
> more accurate than "采用可靠的同步机制"?

Yes, I just copy-paste what my llm told me as an example ;-). This looks
like a freer translation, though we generally prefer to stick closer to
the original wording. I suspect the llm interpreted the phrase in light
of the surrounding context and translated it accordingly. So I'm of
course fine with 设计.

> To be honest, I used the google translator sometimes when I translated this
> article. However, I don't think the results are good as we expected, so I
> never trust it 100%.

That's really a good parctice IMO. Btw nowadays LLMs do translate better
than google translate, I feel like. But yeah, if you are familiar with
these certain parts, you certainly know whether it's doing good or bad.
So please double check the output of these tools manually. Otherwise
reviewers are going to have a hard time ;-)

Thanks.