Re: [RFC v2 1/2] scsi: sd: fix write_same16 and write_same10 for sector size > PAGE_SIZE
From: Luis Chamberlain
Date: Wed Dec 03 2025 - 20:39:47 EST
On Wed, Dec 03, 2025 at 11:05:46PM +0000, sw.prabhu6@xxxxxxxxx wrote:
> From: Swarna Prabhu <sw.prabhu6@xxxxxxxxx>
>
> The WRITE SAME(16) and WRITE SAME(10) scsi commands uses
> a page from a dedicated mempool('sd_page_pool') for its
> payload. This pool was initialized to allocate single
> pages, which was sufficient as long as the device sector
> size did not exceed the PAGE_SIZE.
>
> Given that block layer now supports block size upto
> 64K ie beyond PAGE_SIZE, adapt sd_set_special_bvec()
> to accommodate that.
>
> With the above fix, enable sector sizes > PAGE_SIZE in
> scsi sd driver.
>
> Signed-off-by: Swarna Prabhu <s.prabhu@xxxxxxxxxxx>
> Co-developed-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
> Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
Just missing the Cc stable # v6.15 tag. Other than that:
Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
Luis