From: Greg KH <gregkh@linuxfoundation.org>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: 2023060904@ycu.edu.cn, linux-staging@lists.linux.dev,
guagua210311@qq.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] rtl8723bs: Refactor continual_io_error check
Date: Wed, 21 Jan 2026 14:27:38 +0100 [thread overview]
Message-ID: <2026012117-blinks-smitten-5874@gregkh> (raw)
In-Reply-To: <aXDTJIERbdMPN8-b@stanley.mountain>
On Wed, Jan 21, 2026 at 04:22:44PM +0300, Dan Carpenter wrote:
> On Tue, Jan 20, 2026 at 10:11:25PM +0800, 2023060904@ycu.edu.cn wrote:
> > From: Changjun Zheng <guagua210311@qq.com>
> >
> > Refactor the error count check logic to follow kernel 'single responsibility' principle:
> > 1. Move the increment logic (atomic_inc) from rtw_inc_and_chk_continual_io_error() to its callers in sdio_ops_linux.c (line 226/302)
> > 2. Keep only the check logic in rtw_inc_and_chk_continual_io_error() (use atomic_read to get current count)
> >
> > This change addresses Greg KH's feedback to move increment to callers, while keeping atomic operations to ensure no compilation/run-time errors.
> >
>
> There are a lot of style issues in this patch. I also still don't
> really understand why we are doing this. Was Greg's email this one?
>
> https://lore.kernel.org/all/2025121757-crowbar-junkman-a96a@gregkh/
>
> I'm guessing that Greg wants you to change this to refcount_t.
Nope! Please don't do that, it's not needed at all.
greg k-h
next prev parent reply other threads:[~2026-01-21 13:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-19 8:06 [PATCH] [rtl8723bs] Remove unnecessary atomic operations for continual_io_error 2023060904
2026-01-19 8:20 ` Greg KH
2026-01-20 14:11 ` [PATCH v2 1/2] rtl8723bs: Refactor continual_io_error check 2023060904
2026-01-20 14:34 ` Greg KH
2026-01-21 13:22 ` Dan Carpenter
2026-01-21 13:27 ` Greg KH [this message]
[not found] ` <20260120141129.8262-1-2023060904@ycu.edu.cn>
2026-01-20 14:11 ` [PATCH v2 2/2] rtl8723bs: Replace atomic ops with normal vars 2023060904
2026-01-19 8:25 ` [PATCH] [rtl8723bs] Remove unnecessary atomic operations for continual_io_error Dan Carpenter
2026-01-20 13:39 ` 2023060904
2026-01-20 14:05 ` Greg KH
2026-01-20 14:18 ` Dan Carpenter
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=2026012117-blinks-smitten-5874@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=2023060904@ycu.edu.cn \
--cc=dan.carpenter@linaro.org \
--cc=guagua210311@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.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