* [PATCH] ps3vram: remove bio splitting
@ 2023-01-23 7:47 Christoph Hellwig
2023-01-24 1:41 ` Geoff Levand
2023-01-24 2:35 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2023-01-23 7:47 UTC (permalink / raw)
To: jim, geoff; +Cc: linux-block, linuxppc-dev
ps3vram iterates over the bio one segment, that is page aligned and max
page sized chunk, a time. Because of that there is no point in
calling bio_split_to_limits, or explicitly setting the default limits
that are only used by bio_split_to_limits.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/block/ps3vram.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index 574e470b220b09..38d42af01b2535 100644
--- a/drivers/block/ps3vram.c
+++ b/drivers/block/ps3vram.c
@@ -586,10 +586,6 @@ static void ps3vram_submit_bio(struct bio *bio)
dev_dbg(&dev->core, "%s\n", __func__);
- bio = bio_split_to_limits(bio);
- if (!bio)
- return;
-
spin_lock_irq(&priv->lock);
busy = !bio_list_empty(&priv->list);
bio_list_add(&priv->list, bio);
@@ -749,9 +745,6 @@ static int ps3vram_probe(struct ps3_system_bus_device *dev)
gendisk->private_data = dev;
strscpy(gendisk->disk_name, DEVICE_NAME, sizeof(gendisk->disk_name));
set_capacity(gendisk, priv->size >> 9);
- blk_queue_max_segments(gendisk->queue, BLK_MAX_SEGMENTS);
- blk_queue_max_segment_size(gendisk->queue, BLK_MAX_SEGMENT_SIZE);
- blk_queue_max_hw_sectors(gendisk->queue, BLK_SAFE_MAX_SECTORS);
dev_info(&dev->core, "%s: Using %llu MiB of GPU memory\n",
gendisk->disk_name, get_capacity(gendisk) >> 11);
--
2.39.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ps3vram: remove bio splitting
2023-01-23 7:47 [PATCH] ps3vram: remove bio splitting Christoph Hellwig
@ 2023-01-24 1:41 ` Geoff Levand
2023-01-24 2:35 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Geoff Levand @ 2023-01-24 1:41 UTC (permalink / raw)
To: Christoph Hellwig, jim; +Cc: linux-block, linuxppc-dev
Hi Christoph,
On 1/22/23 23:47, Christoph Hellwig wrote:
> ps3vram iterates over the bio one segment, that is page aligned and max
> page sized chunk, a time. Because of that there is no point in
> calling bio_split_to_limits, or explicitly setting the default limits
> that are only used by bio_split_to_limits.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> drivers/block/ps3vram.c | 7 -------
> 1 file changed, 7 deletions(-)
I tested this patch applied to the ps3-queue branch (v6.2-rc5 based) of my
kernel.org ps3-linux repo. I could format the ps3vram device with ext4,
copy files to it, run fsck, etc.
Thanks for your effort.
Tested-by: Geoff Levand <geoff@infradead.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ps3vram: remove bio splitting
2023-01-23 7:47 [PATCH] ps3vram: remove bio splitting Christoph Hellwig
2023-01-24 1:41 ` Geoff Levand
@ 2023-01-24 2:35 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2023-01-24 2:35 UTC (permalink / raw)
To: jim, geoff, Christoph Hellwig; +Cc: linux-block, linuxppc-dev
On Mon, 23 Jan 2023 08:47:18 +0100, Christoph Hellwig wrote:
> ps3vram iterates over the bio one segment, that is page aligned and max
> page sized chunk, a time. Because of that there is no point in
> calling bio_split_to_limits, or explicitly setting the default limits
> that are only used by bio_split_to_limits.
>
>
Applied, thanks!
[1/1] ps3vram: remove bio splitting
commit: 2192a93eb4ac63eeb37ec5ec5cfa0db92ded5e3c
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-24 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-23 7:47 [PATCH] ps3vram: remove bio splitting Christoph Hellwig
2023-01-24 1:41 ` Geoff Levand
2023-01-24 2:35 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).