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 V8 01/11] block: clone nr_integrity_segments and write_hint in blk_rq_prep_clone

2020-04-24 Thread Martin K. Petersen
hould > 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] [PATCHv5 00/14] dm-zoned: metadata version 2

2020-05-13 Thread Martin K. Petersen
orms best 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] [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

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

2020-05-22 Thread Martin K. Petersen
. 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] [PATCH] block: Improve io_opt limit stacking

2020-05-22 Thread Martin K. Petersen
RAID, for 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 v3 4/6] block: allow 'chunk_sectors' to be non-power-of-2

2020-09-22 Thread Martin K. Petersen
odate drivers 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 v3 3/6] block: use lcm_not_zero() when stacking chunk_sectors

2020-09-22 Thread Martin K. Petersen
gt; Also, if 'chunk_sectors' 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

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 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 07/13] block: lift setting the readahead size into the block layer

2020-09-24 Thread Martin K. Petersen
same 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 Or

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] [ 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
ba9b0e201a 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/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] block: Fix a WRITE SAME BUG_ON

2019-01-28 Thread Martin K. Petersen
evant due to the payload 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] block: Fix a WRITE SAME BUG_ON

2019-01-30 Thread Martin K. Petersen
c. But adoption has been 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-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-02-19 Thread Martin K. Petersen
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] [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://w

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 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 3/4] sd_zbc: Fix report zones buffer allocation

2019-07-11 Thread Martin K. Petersen
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 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 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: [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

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

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

2019-11-01 Thread Martin K. Petersen
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: [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 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] [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

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] [PATCH v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES

2020-03-19 Thread Martin K. Petersen
time wrapping my head 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 v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES

2020-03-25 Thread Martin K. Petersen
ing 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-26 Thread Martin K. Petersen
LOCATE if you find the resulting 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] remove REQ_OP_WRITE_SAME

2017-04-13 Thread Martin K. Petersen
ITE SAME until I finish the token stuff. -- 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 26/27] scsi: sd: Separate zeroout and discard command choices

2017-04-19 Thread Martin K. Petersen
Paolo, > Should this be conditional on lbprz, lbpws, lbpws10 and max_ws_blocks? It is intentional that things can be overridden from userland for devices that report the "wrong" thing. We do the same for discard so people can set up udev rules. -- Martin K. Petersen

Re: [dm-devel] [PATCH 08/23] scsi: introduce a result field in struct scsi_request

2017-04-19 Thread Martin K. Petersen
Christoph Hellwig writes: > This passes on the scsi_cmnd result field to users of passthrough > requests. Currently we abuse req->errors for this purpose, but that > field will go away in its current form. Reviewed-by: Martin K. Petersen > Note that the old IDE code abuses t

Re: [dm-devel] [PATCH] block: get rid of blk_integrity_revalidate()

2017-04-19 Thread Martin K. Petersen
I seem to recall that the reason for the revalidate hook was that either NVMe or nvdimm had to register an integrity profile prior to the actual format being known. So while I am OK with the change from a SCSI perspective, I think we need Keith and Dan to ack it. -- 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 for-4.12] block, dm: use __blk_integrity_register to properly setup integrity profile

2017-04-23 Thread Martin K. Petersen
integrity interval be explicitly specified in the integrity template for all callers. Maybe with a fallback to qlbs if it's set to 0. -- 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 v2 for-4.12] block: fix blk_integrity_register to use template's interval_exp if not 0

2017-04-23 Thread Martin K. Petersen
nderlying device if its logical block size > conflicts with the underlying device's logical block size. Looks good! 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] remove REQ_OP_WRITE_SAME

2017-05-08 Thread Martin K. Petersen
Christoph, > Any chance to get a sneak preview of that work? I have been on the road since LSF/MM and just got back home. I'll make it a priority. -- 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 02/13] scsi/osd: don't save block errors into req_results

2017-05-26 Thread Martin K. Petersen
Christoph, > We will only have sense data if the command exectured and got a SCSI > result, so this is pointless. "executed" Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.re

Re: [dm-devel] [RFC PATCH] bio-integrity: Fix regression if profile verify_fn is NULL

2017-08-02 Thread Martin K. Petersen
ion handling abused the endio function). Anyway. So I think that the BLK_INTEGRITY_VERIFY logic needs to be carried over to __bio_integrity_endio()... -- 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] bio-integrity: revert "stop abusing bi_end_io"

2017-08-05 Thread Martin K. Petersen
fer that approach to reverting Christoph's commit. -- 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] bio-integrity: revert "stop abusing bi_end_io"

2017-08-05 Thread Martin K. Petersen
ver or HBA firmware. So the verification is designed to be done by the top level entity that attaches the protection information to the bio. In this case bio_integrity_prep(). -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redh

Re: [dm-devel] [PATCH] bio-integrity: revert "stop abusing bi_end_io"

2017-08-07 Thread Martin K. Petersen
transitions from one address space to the other. In addition, some HBA hardware allows us to program the PI engine with the seed value. So the submitter value to LBA conversion can be done on the fly in hardware. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing li

Re: [dm-devel] integrity regression fixes for 4.13-rc

2017-08-09 Thread Martin K. Petersen
s us back to the status quo. > > The second one makes sure that we only verify the DIF checksums on the > lowest layer where we attach the integrity information. These look OK to me. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailin

Re: [dm-devel] two small integrity cleanups

2017-08-09 Thread Martin K. Petersen
Christoph, > Found these while coming up with the fixes just sent. Also OK. 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] scsi_dh: add new rdac devices

2017-12-07 Thread Martin K. Petersen
plied to 4.16/scsi-queue. -- 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 V2] blk-mq: introduce BLK_STS_DEV_RESOURCE

2018-01-23 Thread Martin K. Petersen
; + * BLK_STS_SOURCE, for example, when memory allocation, DMA Mapping or other ^^^^^^ -- 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 v2] block: use gcd() to fix chunk_sectors limit stacking

2020-12-01 Thread Martin K. Petersen
d instead 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 1/4] block: add a hard-readonly flag to struct gendisk

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

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

2020-12-03 Thread Martin K. Petersen
obbered because of ambiguity of the existing 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/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 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 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 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
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 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 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@redha

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

2020-12-08 Thread Martin K. Petersen
ng situation 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] [RFC PATCH v2 1/2] block: add simple copy support

2020-12-08 Thread Martin K. Petersen
oach the M:N splitting problem (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] (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: one more time: SCSI device identification

2021-04-05 Thread Martin K. Petersen
eport something completely 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] RFC: one more time: SCSI device identification

2021-04-21 Thread Martin K. Petersen
common vendor specific ones are 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 p

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

2021-04-22 Thread Martin K. Petersen
ferent > name. Or this 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

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] [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.c

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 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 3/7] block: copy offload support infrastructure

2021-08-18 Thread Martin K. Petersen
st build 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 v5 0/4] blk-crypto cleanups

2021-10-12 Thread Martin K. Petersen
oks good to 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 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 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-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 O

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

2021-10-20 Thread Martin K. Petersen
ups of > 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/e9d658c

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.

Re: [dm-devel] remove REQ_OP_WRITE_SAME v2

2022-02-17 Thread Martin K. Petersen
ou want me > to resend? If you have your discard rework ready you can also send > that now and I'll rebase on top of that. I'll fix it up when applying. Will get this queued up tomorrow. -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat

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] [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] [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] 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 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] [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 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 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 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] [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] [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 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] [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 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] [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 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 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 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

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 21/27] block: move {bdev, queue_limit}_discard_alignment out of line

2022-04-06 Thread Martin K. Petersen
misaligned 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 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 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

  1   2   >