public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: sw.prabhu6@gmail.com
To: James.Bottomley@HansenPartnership.com,
	martin.petersen@oracle.com, linux-scsi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, mcgrof@kernel.org,
	pankaj.raghav@linux.dev, bvanassche@acm.org, dlemoal@kernel.org,
	Swarna Prabhu <sw.prabhu6@gmail.com>
Subject: [PATCH v3 0/2] enable sector size > PAGE_SIZE for scsi
Date: Fri, 13 Feb 2026 17:18:28 -0800	[thread overview]
Message-ID: <20260214011829.508272-1-sw.prabhu6@gmail.com> (raw)

From: Swarna Prabhu <sw.prabhu6@gmail.com>

Hi All,

This is v3 series sent based on the review comments received on v2 [1].
This patchset enables sector sizes > PAGE_SIZE for
sd driver and scsi_debug driver since block layer can support block
size > PAGE_SIZE. There was one issue with write_same16 and write_same10
command, which is fixed as a part of the series.

Changes since v2:
 - create a helper function to initialize a large page mempool at
   'sd_probe' when the first device with sector size > 4k is detected
   for sd driver with ensuring atomicity.
 - create a helper function for safe destruction of the large page
   mempool and use that in 'sd_probe' if the device fails at probe
   after the mempool is successfully created.
 - Utilize the helper function for safe destruction of the large
   page mempool in 'sd_remove' when the last device with sector
   size > PAGE_SIZE is detached from the system.
 - Replace while with for loop to 'clear_page' in 'sd_set_special_bvec'
   function in sd driver.
 - Modified the git commit title and message to remove the fix tag for
   for scsi sd driver patch.
 - Rebased the changes on latest origin/master branch.

Thanks to Damien for review on the v2 series.

Testing:
-Test suite: xfs and generic from fstest + QEMU emulated block
    device(scsi and nvme)
  - fstest Config for patched xfs 16k block size [xfs_reflink_16k_scsi]
    TEST_DEV=/dev/sda
    SCRATCH_DEV_POOL="/dev/sdb"
    MKFS_OPTIONS='-f -m reflink=1,rmapbt=1, -i sparse=1, -b size=16384,
    -s size=16384'
  - Generic test results
    Baseline: 6.19-rc8 kernel + nvme 16k logical block size
    Patched: 6.19-rc8 kernel + scsi 16k logical block size
    No regressions introduced by the patch.
  - XFS tests results
    Baseline: 6.19-rc8 kernel + nvme 16k logical block size
    Patched: 6.19-rc8 kernel + scsi 16k logical block size
    No regressions introduced by the patch
  - Blktests results
    scsi and block layer tests with 16k logical block size.
    Baseline: vanilla kernel + scsi 4k
    No regressions seen by the patch.

Link to v2: https://lore.kernel.org/all/20260211015043.2608866-1-sw.prabhu6@gmail.com/ [1]

Swarna Prabhu (2):
  scsi: sd: enable sector size > PAGE_SIZE in scsi sd driver
  scsi: scsi_debug: enable sdebug_sector_size > PAGE_SIZE

 drivers/scsi/scsi_debug.c |  8 +---
 drivers/scsi/sd.c         | 80 +++++++++++++++++++++++++++++++++------
 2 files changed, 69 insertions(+), 19 deletions(-)

-- 
2.39.5


             reply	other threads:[~2026-02-14  1:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-14  1:18 sw.prabhu6 [this message]
2026-02-14  1:18 ` [PATCH v3 1/2] scsi: sd: enable sector size > PAGE_SIZE in scsi sd driver sw.prabhu6
2026-02-16 22:56   ` Damien Le Moal
2026-02-14  1:18 ` [PATCH v3 2/2] scsi: scsi_debug: enable sdebug_sector_size > PAGE_SIZE sw.prabhu6
2026-02-16 22:57   ` Damien Le Moal
2026-03-13  7:26     ` Hannes Reinecke

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=20260214011829.508272-1-sw.prabhu6@gmail.com \
    --to=sw.prabhu6@gmail.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=bvanassche@acm.org \
    --cc=dlemoal@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=mcgrof@kernel.org \
    --cc=pankaj.raghav@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