From: Damien Le Moal <dlemoal@kernel.org>
To: "Martin K . Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org
Subject: [PATCH v3 0/2] Improve optimal IO size initialization
Date: Thu, 12 Jun 2025 15:02:09 +0900 [thread overview]
Message-ID: <20250612060211.1970933-1-dlemoal@kernel.org> (raw)
A couple of patches to improve setting the optimal I/O size limit of
scsi disks. A fallback default is added to make sure we always have a
non-zero optimal I/O size so that file systems operate with a
reasonnably sized default read_ahead_kb value, for improving buffered
read performance.
Changes from v1:
- Changed message level from wrong WARNING level to INFO level
- Added review tag
Changes from v2:
- Added patch 1
- Make sure we do not overflow variables and limits in patch 2
Damien Le Moal (2):
scsi: sd: Prevent logical_to_bytes() from returning overflowed values
scsi: sd: Set a default optimal IO size if one is not defined
drivers/scsi/sd.c | 45 +++++++++++++++++++++++++++++++++++----------
drivers/scsi/sd.h | 2 +-
2 files changed, 36 insertions(+), 11 deletions(-)
--
2.49.0
next reply other threads:[~2025-06-12 6:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-12 6:02 Damien Le Moal [this message]
2025-06-12 6:02 ` [PATCH v3 1/2] scsi: sd: Prevent logical_to_bytes() from returning overflowed values Damien Le Moal
2025-06-12 15:53 ` Bart Van Assche
2025-06-13 5:55 ` Damien Le Moal
2025-06-12 6:02 ` [PATCH v3 2/2] scsi: sd: Set a default optimal IO size if one is not defined Damien Le Moal
2025-06-12 15:55 ` Bart Van Assche
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=20250612060211.1970933-1-dlemoal@kernel.org \
--to=dlemoal@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.