Re: [dm-devel] [PATCH 19/31] scsi: replace the fmode_t argument to scsi_cmd_allowed with a simple bool

2023-06-07 Thread Martin K. Petersen
Christoph, > Instead of passing a fmode_t and only checking it for FMODE_WRITE, pass > a bool open_for_write to prepare for callers that won't have the fmode_t. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redh

Re: [dm-devel] [PATCH 21/31] scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool

2023-06-07 Thread Martin K. Petersen
Christoph, > Instead of passing a fmode_t and only checking it for FMODE_WRITE, pass > a bool open_for_write to prepare for callers that won't have the fmode_t. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redh

Re: [dm-devel] [PATCH v7 0/5] Introduce provisioning primitives

2023-06-07 Thread Martin K. Petersen
or discarded), and > nothing else. Yep. That's also how SCSI defines it. The act of provisioning a block range is done through an UNMAP command using a special flag. All it does is pin down those LBAs so future writes to them won't result in ENOSPC. -- Martin K. Petersen Oracle Linux Engineering -- d

Re: [dm-devel] [PATCH 20/31] scsi: replace the fmode_t argument to scsi_ioctl with a simple bool

2023-06-07 Thread Martin K. Petersen
Christoph, > Instead of passing a fmode_t and only checking it for FMODE_WRITE, pass > a bool open_for_write to prepare for callers that won't have the fmode_t. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redh

Re: [dm-devel] [PATCH v12 5/9] nvme: add copy offload support

2023-06-07 Thread Martin K. Petersen
s and for SCSI we'd just make sure the copy scope is the same for the two block devices before we even issue the operations. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: (subset) [PATCH 0/9] Documentation: correct lots of spelling errors (series 2)

2023-02-14 Thread Martin K. Petersen
Log*: correct spelling https://git.kernel.org/mkp/scsi/c/685d5ef436a9 [7/9] Documentation: scsi: correct spelling https://git.kernel.org/mkp/scsi/c/cf065a7da517 -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] fix and cleanup discard_alignment handling

2022-04-25 Thread Martin K. Petersen
w I ended up with "discard_alignment" when I called the corresponding I/O parameter "alignment_offset". Anyway. All this looks good to me. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 01/27] target: remove an incorrect unmap zeroes data deduction

2022-04-06 Thread Martin K. Petersen
iewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 26/27] block: uncouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARD

2022-04-06 Thread Martin K. Petersen
Christoph, > Secure erase is a very different operation from discard in that it is > a data integrity operation vs hint. Fully split the limits and helper > infrastructure to make the separation more clear. Great! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Ora

Re: [dm-devel] [Ocfs2-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper

2022-04-06 Thread Martin K. Petersen
for > write zeroes as well. Nicer! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 25/27] block: remove QUEUE_FLAG_DISCARD

2022-04-06 Thread Martin K. Petersen
Christoph, > Just use a non-zero max_discard_sectors as an indicator for discard > support, similar to what is done for write zeroes. Very happy to finally see this flag removed! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailin

Re: [dm-devel] [Ocfs2-devel] [PATCH 24/27] block: add a bdev_discard_granularity helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Abstract away implementation details from file systems by providing a > block_device based helper to retreive the discard granularity. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [Ocfs2-devel] [PATCH 22/27] block: refactor discard bio size limiting

2022-04-06 Thread Martin K. Petersen
Christoph, > Move all the logic to limit the discard bio size into a common helper > so that it is better documented. Looks OK. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redh

Re: [dm-devel] [Ocfs2-devel] [PATCH 21/27] block: move {bdev, queue_limit}_discard_alignment out of line

2022-04-06 Thread Martin K. Petersen
ligned flag. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 20/27] block: use bdev_discard_alignment in part_discard_alignment_show

2022-04-06 Thread Martin K. Petersen
Christoph, > Use the bdev based alignment helper instead of open coding it. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 19/27] block: remove queue_discard_alignment

2022-04-06 Thread Martin K. Petersen
Christoph, > Just use bdev_alignment_offset in disk_discard_alignment_show instead. > That helpers is the same except for an always false branch that > doesn't matter in this slow path. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-deve

Re: [dm-devel] [Ocfs2-devel] [PATCH 18/27] block: move bdev_alignment_offset and queue_limit_alignment_offset out of line

2022-04-06 Thread Martin K. Petersen
Christoph, > No need to inline these fairly larger helpers. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 17/27] block: use bdev_alignment_offset in disk_alignment_offset_show

2022-04-06 Thread Martin K. Petersen
Christoph, > This does the same as the open coded variant except for an extra > branch, and allows to remove queue_alignment_offset entirely. Also fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [Ocfs2-devel] [PATCH 15/27] block: use bdev_alignment_offset in part_alignment_offset_show

2022-04-06 Thread Martin K. Petersen
by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 10/27] block: add a bdev_nonrot helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the nonrot flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [PATCH 03/27] target: fix discard alignment on partitions

2022-04-06 Thread Martin K. Petersen
Christoph, > Use the proper bdev_discard_alignment helper that accounts for partition > offsets. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [Ocfs2-devel] [PATCH 13/27] block: add a bdev_stable_writes helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the stable writes flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redh

Re: [dm-devel] [Ocfs2-devel] [PATCH 12/27] block: add a bdev_fua helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the FUA flag based on the block_device instead > of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [Ocfs2-devel] [PATCH 11/27] block: add a bdev_write_cache helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the write cache flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [PATCH 14/27] block: add a bdev_max_zone_append_sectors helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the max supported sectors for zone append based > on the block_device instead of having to poke into the block layer > internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailin

Re: [dm-devel] [PATCH 02/27] target: pass a block_device to target_configure_unmap_from_queue

2022-04-06 Thread Martin K. Petersen
Christoph, > The target code is a consumer of the block layer and should generally > work on struct block_device. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listi

Re: [dm-devel] [PATCH 01/27] target: remove an incorrect unmap zeroes data deduction

2022-04-06 Thread Martin K. Petersen
> Fixes: 2237498f0b5c ("target/iblock: Convert WRITE_SAME to > blkdev_issue_zeroout") > Signed-off-by: Christoph Hellwig -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 4/5] block: turn bio_kmalloc into a simple kmalloc wrapper

2022-03-08 Thread Martin K. Petersen
ed short nr_iovecs); > +struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask); I understand why you did it but this parameter reversal is a bit scary. Hopefully gfp_t will cause any mistakes to be flagged. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] [PATCH 3/5] target/pscsi: remove pscsi_get_bio

2022-03-01 Thread Martin K. Petersen
Christoph, > Remove pscsi_get_bio and simplify the code flow in the only caller. Looks good to me. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] remove REQ_OP_WRITE_SAME v2

2022-02-27 Thread Martin K. Petersen
csi/c/73bd66d9c834 -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 7/7] block: remove REQ_OP_WRITE_SAME support

2022-02-22 Thread Martin K. Petersen
Christoph, > The maybe fold this in? Done, thanks! -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 7/7] block: remove REQ_OP_WRITE_SAME support

2022-02-19 Thread Martin K. Petersen
This tripped one of my test scripts. We should probably return 0 here like we did for discard_zeroes_data and leave the sysfs entry in place. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] remove REQ_OP_WRITE_SAME v2

2022-02-19 Thread Martin K. Petersen
lied to 5.18/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] remove REQ_OP_WRITE_SAME v2

2022-02-09 Thread Martin K. Petersen
o particular objections from me. I had a half-baked series to do the same thing. One thing I would like is to either pull this series through SCSI or do the block pieces in a post merge branch because I'm about to post my discard/zeroing rework and that's going to clash with your changes. -- Martin

Re: [dm-devel] [PATCH 0/9] block: reviewed add_disk() error handling set

2021-10-20 Thread Martin K. Petersen
f > patches now: > > [...] Applied to 5.16/scsi-queue, thanks! [1/9] scsi/sd: add error handling support for add_disk() https://git.kernel.org/mkp/scsi/c/2a7a891f4c40 [2/9] scsi/sr: add error handling support for add_disk() https://git.kernel.org/mkp/scsi/c/e9d658c2175b

Re: [dm-devel] [PATCH 1/9] scsi/sd: add error handling support for add_disk()

2021-10-18 Thread Martin K. Petersen
Luis, > Thanks, would you like Jens to pick this up and the other scsi/sr patch > or are you taking it through your tree? Didn't think I had the relevant add_disk() patch in my baseline tree but it turns out I do. So I queued them up. Thanks! -- Martin K. Petersen Oracle

Re: [dm-devel] [PATCH 2/9] scsi/sr: add error handling support for add_disk()

2021-10-16 Thread Martin K. Petersen
Luis, > We never checked for errors on add_disk() as this function returned > void. Now that this is fixed, use the shiny new error handling. > > Just put the cdrom kref and have the unwinding be done by > sr_kref_release(). Acked-by: Martin K. Petersen -- Martin K. Peter

Re: [dm-devel] [PATCH 1/9] scsi/sd: add error handling support for add_disk()

2021-10-16 Thread Martin K. Petersen
scsi_disk_release(). Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v5 0/4] blk-crypto cleanups

2021-10-12 Thread Martin K. Petersen
o me, easier to follow. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 3/7] block: copy offload support infrastructure

2021-08-18 Thread Martin K. Petersen
ild the infrastructure around what already exists. And that's where the proposed design falls short... -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 02/15] block: use bvec_virt in bio_integrity_{process, free}

2021-08-05 Thread Martin K. Petersen
Christoph, > Use the bvec_virt helper to clean up the bio integrity processing a > little bit. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 01/15] bvec: add a bvec_virt helper

2021-08-05 Thread Martin K. Petersen
Christoph, > Add a helper to get the virtual address for a bvec. This avoids that > all callers need to know about the page + offset representation. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [PATCH 10/15] sd: use bvec_virt

2021-08-05 Thread Martin K. Petersen
Christoph, > Use bvec_virt instead of open coding it. bv_offset is set to 0 right above but I'm OK with bvec_virt() for the sake of consistency. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com ht

Re: [dm-devel] switch the block layer to use kmap_local_page v2

2021-06-16 Thread Martin K. Petersen
Christoph, > this series switches the core block layer code and all users of the > existing bvec kmap helpers to use kmap_local_page. Drivers that > currently use open coded kmap_atomic calls will converted in a follow > on series. Looks OK to me. Reviewed-by: Martin K. Petersen

Re: [dm-devel] RFC: one more time: SCSI device identification

2021-04-22 Thread Martin K. Petersen
new attribute could be a property of the block device > rather than the SCSI device, like NVMe does it > (/sys/block/nvme0n2/wwid). That's fine. I am not a big fan of the idea that block/foo/wwid and block/foo/device/wwid could end up being different. But I do think that from a userland tooling

Re: [dm-devel] RFC: one more time: SCSI device identification

2021-04-21 Thread Martin K. Petersen
e in practice. Things would obviously be easier if SCSI didn't have so many choices :( But taking a step back: Other than "it's not what userland currently does", what specifically is the problem with designator_prio()? We've picked the priority list once and for all. If we promise

Re: [dm-devel] RFC: one more time: SCSI device identification

2021-04-05 Thread Martin K. Petersen
letely unusable in type 8. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] (subset) [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-09 Thread Martin K. Petersen
eak/goto/return/fallthrough statements instead of just > letting the code fall through to the next case. > > [...] Applied to 5.11/scsi-queue, thanks! [054/141] target: Fix fall-through warnings for Clang https://git.kernel.org/mkp/scsi/c/492096ecfa39 -- Martin K. Petersen

Re: [dm-devel] [RFC PATCH v2 1/2] block: add simple copy support

2020-12-08 Thread Martin K. Petersen
oblem (if at all)... -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Martin K. Petersen
uation was hard to resolve. The QoS guarantee was somewhat addressed by Fred in T10. But I agree we need some sort of toggle. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 5/6] rbd: remove the ->set_read_only method

2020-12-07 Thread Martin K. Petersen
Christoph, > Now that the hardware read-only state can't be changed by the BLKROSET > ioctl, the code in this method is not required anymore. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [PATCH 6/6] nvme: allow revalidate to set a namespace read-only

2020-12-07 Thread Martin K. Petersen
Christoph, > Unconditionally call set_disk_ro now that it only updates the hardware > state. This allows to properly set up the Linux devices read-only when > the controller turns a previously writable namespace read-only. Reviewed-by: Martin K. Petersen -- Martin K. Petersen

Re: [dm-devel] [PATCH 3/6] block: add a hard-readonly flag to struct gendisk

2020-12-07 Thread Martin K. Petersen
EVNAME_SIZE]; > > if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 4/6] block: propagate BLKROSET on the whole device to all partitions

2020-12-07 Thread Martin K. Petersen
read-only blktests succeed with this change in place. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 3/6] block: add a hard-readonly flag to struct gendisk

2020-12-07 Thread Martin K. Petersen
ression that left some > USB devices read-only indefinitely. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 2/6] block: remove the NULL bdev check in bdev_read_only

2020-12-07 Thread Martin K. Petersen
Christoph, > Only a single caller can end up in bdev_read_only, so move the check there. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2020-12-07 Thread Martin K. Petersen
Christoph, > dm-thin and dm-cache also work on partitions, so use the proper > interface to check if the device is read-only. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/m

Re: [dm-devel] [PATCH 1/4] block: add a hard-readonly flag to struct gendisk

2020-12-03 Thread Martin K. Petersen
ting whole-disk device policy. The current behavior violates the principle of least surprise by letting the user think they write protected the whole disk when they actually didn't. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/4] block: add a hard-readonly flag to struct gendisk

2020-12-02 Thread Martin K. Petersen
disk) > { > - return disk->part0->bd_read_only; > + return disk->part0->bd_read_only || > + test_bit(GD_READ_ONLY, >state); > } > > extern void disk_block_events(struct gendisk *disk); -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] [PATCH v2] block: use gcd() to fix chunk_sectors limit stacking

2020-12-01 Thread Martin K. Petersen
tead of reverting back > to using min_not_zero(). This approach looks fine to me. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 000/141] Fix fall-through warnings for Clang

2020-12-01 Thread Martin K. Petersen
Gustavo, > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. Applied 20-22,54,120-124 to 5.11/scsi-staging, thanks. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com

Re: [dm-devel] [PATCH 04/24] sd: update the bdev size in sd_revalidate_disk

2020-11-11 Thread Martin K. Petersen
Christoph, > This avoids the extra call to revalidate_disk_size in sd_rescan and > is otherwise a no-op because the size did not change, or we are in > the probe path. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list

Re: [dm-devel] [ Regressions ] linux next 20201008: blk_update_request: I/O error, dev sda, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0

2020-10-08 Thread Martin K. Petersen
e201a scsi: core: Set sc_data_direction to DMA_NONE for no-transfer commands 9120ac54cce6 scsi: sr: Initialize ->cmd_len -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 04/13] aoe: set an optimal I/O size

2020-09-24 Thread Martin K. Petersen
Christoph, > aoe forces a larger readahead size, but any reason to do larger I/O is > not limited to readahead. Also set the optimal I/O size, and remove > the local constants in favor of just using SZ_2G. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux En

Re: [dm-devel] [PATCH 07/13] block: lift setting the readahead size into the block layer

2020-09-24 Thread Martin K. Petersen
me scheme based on > max_sectors. To ensure the limits work well for stacking drivers a > new helper is added to update the readahead limits from the block > limits, which is also called from disk_stack_limits. Looks good! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle

Re: [dm-devel] [PATCH 06/13] md: update the optimal I/O size on reshape

2020-09-24 Thread Martin K. Petersen
Christoph, > The raid5 and raid10 drivers currently update the read-ahead size, but > not the optimal I/O size on reshape. To prepare for deriving the > read-ahead size from the optimal I/O size make sure it is updated as > well. Reviewed-by: Martin K. Petersen -- Martin

Re: [dm-devel] [PATCH 03/13] bcache: inherit the optimal I/O size

2020-09-24 Thread Martin K. Petersen
Christoph, > Inherit the optimal I/O size setting just like the readahead window, > as any reason to do larger I/O does not apply to just readahead. Looks fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redh

Re: [dm-devel] [PATCH v3 3/6] block: use lcm_not_zero() when stacking chunk_sectors

2020-09-22 Thread Martin K. Petersen
' isn't a multiple of 'physical_block_size' > then it is a bug in the driver and the device should be flagged as > 'misaligned'. Looks good. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat

Re: [dm-devel] [PATCH v3 4/6] block: allow 'chunk_sectors' to be non-power-of-2

2020-09-22 Thread Martin K. Petersen
ers that need a non power-of-2 chunk_sectors. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] block: Improve io_opt limit stacking

2020-05-22 Thread Martin K. Petersen
instance, doesn't produce the expected result. So I think I'd prefer not to set io_opt at all if it isn't consistent across all the stacked devices. Let me chew on it for a bit... -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] block: Improve io_opt limit stacking

2020-05-22 Thread Martin K. Petersen
5.8. Setting io_opt to the physical block size is not correct. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCHv5 00/14] dm-zoned: metadata version 2

2020-05-13 Thread Martin K. Petersen
/Os larger than this value. Setting io_opt to the logical block size kind of defeats that intent. That said, we should probably handle the case where the pbs gets scaled up but io_opt doesn't more gracefully. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@r

Re: [dm-devel] [PATCHv5 00/14] dm-zoned: metadata version 2

2020-05-13 Thread Martin K. Petersen
when each I/O is limited to a single logical block? -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH V8 01/11] block: clone nr_integrity_segments and write_hint in blk_rq_prep_clone

2020-04-24 Thread Martin K. Petersen
> have been cloned too. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH V8 02/11] block: add helper for copying request

2020-04-24 Thread Martin K. Petersen
Ming, > Add one new helper of blk_rq_copy_request() to copy request, and the > helper will be used in this patch for re-submitting request, so make > it as a block layer internal helper. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering --

Re: [dm-devel] [PATCH v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES

2020-03-26 Thread Martin K. Petersen
sulting code duplication acceptable. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES

2020-03-25 Thread Martin K. Petersen
eroing when provisioning blocks or not? -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES

2020-03-19 Thread Martin K. Petersen
d around "allocate this block and zero it if you can" than "zero this block and do not deallocate it". But maybe that's just me. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] block: fix an integer overflow in logical block size

2020-01-15 Thread Martin K. Petersen
Mikulas, > This patch changes the logical block size from unsigned short to > unsigned int to avoid the overflow. Looks fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/m

Re: [dm-devel] [LSF/MM/BFP ATTEND] [LSF/MM/BFP TOPIC] Storage: Copy Offload

2020-01-09 Thread Martin K. Petersen
aka LID1). I don't think LID1 vs LID4 is particularly interesting for the Linux use case. It's just an additional command tag since the copy manager is a third party. > * Microsoft, which uses ODX (aka LID4 because it has a four-byte length > ID). Microsoft uses the token commands. -- Mar

Re: [dm-devel] [PATCH 0/8] Zone management commands support

2019-11-04 Thread Martin K. Petersen
Damien, > Can you take patch 3 now ? Yep. Applied to 5.4/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 6/8] scsi: sd_zbc: add zone open, close, and finish support

2019-11-01 Thread Martin K. Petersen
Damien, > Implement REQ_OP_ZONE_OPEN, REQ_OP_ZONE_CLOSE and REQ_OP_ZONE_FINISH > support to allow explicit control of zone states. > > Contains contributions from Matias Bjorling, Hans Holmberg, > Keith Busch and Damien Le Moal. Looks fine. Reviewed-by: Martin K. Petersen

Re: [dm-devel] [PATCH 3/8] scsi: sd_zbc: Fix sd_zbc_complete()

2019-11-01 Thread Martin K. Petersen
in the case of > REQ_OP_ZONE_RESET, excluding REQ_OP_ZONE_RESET_ALL. > > Since REQ_OP_ZONE_RESET is the only request handled by > sd_zbc_complete(), also simplify the code using a simple if statement. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-dev

Re: [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

2019-09-18 Thread Martin K. Petersen
ext. Thanks for the heads-up! -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

2019-08-07 Thread Martin K. Petersen
oth land linus tree. I'll set up an amalgamated for-next branch tomorrow. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH V6 4/4] block: Limit zone array allocation size

2019-07-11 Thread Martin K. Petersen
d of allocating contiguous pages with alloc_pages(). Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH V6 3/4] sd_zbc: Fix report zones buffer allocation

2019-07-11 Thread Martin K. Petersen
s and KMALLOC_MAX_SIZE (4MB) and succeeds on boot (no > memory fragmentation), but often fail at run time (e.g. hot-plug > event). This causes the disk revalidation to fail and the disk > capacity to be changed to 0. Probably easiest to funnel this through block with the rest of the series. Acked

Re: [dm-devel] [PATCH V6 2/4] block: Kill gfp_t argument of blkdev_report_zones()

2019-07-11 Thread Martin K. Petersen
lloc_noio_save/restore() where > necessary (block layer zone revalidation and dm-zoned I/O error path). LGTM. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH V6 1/4] block: Allow mapping of vmalloc-ed buffers

2019-07-11 Thread Martin K. Petersen
by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] scsi: add new RDAC LENOVO/DE_Series device

2019-04-03 Thread Martin K. Petersen
Xose, > Blacklist "Universal Xport" LUN, it's used for in-band storage array > management. And add it to the rdac dh family. Applied to 5.1/scsi-fixes, thanks. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.re

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-02-19 Thread Martin K. Petersen
? If we stick with the UINT_MAX check, the comment should at least point out why it's there. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-02-13 Thread Martin K. Petersen
zhangxiaoxu, > Any progress about the problme? > Should we disable the write same when stack the different LBA disks? Yes, please. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-01-30 Thread Martin K. Petersen
pretty slow. I don't have any problems keeping WRITE_SAME around if people are actually using it. It just seemed like most active users only cared about writing zeroes. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-01-28 Thread Martin K. Petersen
load being the ZERO_PAGE), it may be worthwhile to remove REQ_OP_WRITE_SAME. I think drbd is the only user relying on a non-zero payload. The target code ends up manually iterating, if I remember correctly... -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 00/11] Zoned block device support improvements

2018-10-24 Thread Martin K. Petersen
ould be properly documented if there is a preferred way to order things... -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 00/11] Zoned block device support improvements

2018-10-23 Thread Martin K. Petersen
The rest of the kernel appears to be either arbitrary ordering or favoring author SoB as the first tag. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 10/11] block: add a report_zones method

2018-10-15 Thread Martin K. Petersen
dded to the dm-linear and > dm-flakey targets. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 11/11] block: Introduce blk_revalidate_disk_zones()

2018-10-15 Thread Martin K. Petersen
r of zones through sysfs, a call to > blk_revalidate_disk_zones() is added to dm_table_set_restrictions(). > > The zone bitmaps allocated and initialized with > blk_revalidate_disk_zones() are freed automatically from > __blk_release_queue() using the block internal function > blk_que

Re: [dm-devel] [PATCH v4 03/11] scsi: sd_zbc: Fix sd_zbc_check_zones() error checks

2018-10-15 Thread Martin K. Petersen
er to > avoid overflowing the signed 32 return value. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 01/11] scsi: sd_zbc: Rearrange code

2018-10-15 Thread Martin K. Petersen
page, rename it to > sd_zbc_check_zoned_characteristics(). Also fix the error message > displayed when reading that VPD page fails. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

  1   2   >