From: Oliver Neukum <oneukum@suse.com>
To: Alex Tran <alex.t.tran@gmail.com>, stern@rowland.harvard.edu
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
usb-storage@lists.one-eyed-alien.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] usb: storage: sddr09: move write buffers into info struct
Date: Mon, 1 Sep 2025 10:10:07 +0200 [thread overview]
Message-ID: <86eeee11-38c1-4754-b72f-7606b137d426@suse.com> (raw)
In-Reply-To: <20250831192247.1120619-1-alex.t.tran@gmail.com>
Hi,
On 8/31/25 21:22, Alex Tran wrote:
> +static int sddr09_init_card_buffers(struct us_data *us)
> +{
> + struct sddr09_card_info *info = (struct sddr09_card_info *)us->extra;
> + unsigned int pagelen, blocklen, len;
> +
> + /*
> + * blockbuffer is used for reading in the old data, overwriting
> + * with the new data, and performing ECC calculations
> + */
> + pagelen = (1 << info->pageshift) + (1 << CONTROL_SHIFT);
> + blocklen = (pagelen << info->blockshift);
> + info->blockbuffer = kmalloc(blocklen, GFP_NOIO);
there is no reason for GFP_NOIO under these circumstances. Please
use GFP_KERNEL.
Regards
Oliver
prev parent reply other threads:[~2025-09-01 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-31 19:22 Alex Tran
2025-09-01 5:37 ` Greg KH
2025-09-01 8:10 ` Oliver Neukum [this message]
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=86eeee11-38c1-4754-b72f-7606b137d426@suse.com \
--to=oneukum@suse.com \
--cc=alex.t.tran@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
/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®