mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Weijie Yuan <wy@wyuan.org>
To: Bruce Song <xiongwei.song@linux.dev>
Cc: Dongliang Mu <dzm91@hust.edu.cn>,
	alexs@kernel.org, si.yanteng@linux.dev, corbet@lwn.net,
	skhan@linuxfoundation.org, rdunlap@infradead.org,
	paulmck@kernel.org, linux-doc@vger.kernel.org,
	rcu@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] docs/zh_CN: Add RCU/whatisRCU.rst Chinese translation
Date: Wed, 25 Nov 2026 21:25:40 +0800	[thread overview]
Message-ID: <awbh1KS3N14bZ2sa@wyuan.org> (raw)
In-Reply-To: <66189c93-6f82-4ac7-9538-2a036842f70e@linux.dev>

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@linux.dev>
> > > > > +
> > > > > +:校译:
> > > > > +
> > > > > +.. _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@gmail.com/
> > 
> > 
> > [...]
> > 
> > 
> > > > > +概括起来如下:
> > > > > +
> > > > > +-    使用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.

  reply	other threads:[~2026-11-25 13:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 13:16 [PATCH v2 0/2] Add RCU docs " xiongwei.song
2026-11-18 13:16 ` [PATCH v2 1/2] docs/zh_CN: Add RCU/index.rst translation xiongwei.song
2026-11-18 13:16 ` [PATCH v2 2/2] docs/zh_CN: Add RCU/whatisRCU.rst Chinese translation xiongwei.song
2026-11-23 14:35   ` Dongliang Mu
2026-11-24 14:23     ` Bruce Song
2026-11-25  3:43       ` Weijie Yuan
2026-11-25 13:14         ` Bruce Song
2026-11-25 13:25           ` Weijie Yuan [this message]
2026-11-25 13:39           ` Weijie Yuan
2026-11-25 13:49       ` Dongliang Mu
2026-11-23 13:09 ` [PATCH v2 0/2] Add RCU docs " Bruce Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awbh1KS3N14bZ2sa@wyuan.org \
    --to=wy@wyuan.org \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dzm91@hust.edu.cn \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=rcu@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=si.yanteng@linux.dev \
    --cc=skhan@linuxfoundation.org \
    --cc=xiongwei.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®