dm: zoned block device fixes
Subsystems (3)
cover dm: zoned block device fixes
Mike,
The first 3 patches of this series are incremental fixes for the zoned block device support patches that you committed to the for-4.13/dm branch.
The first patch correct the zone alignement checks so that the check is performed for any device, regardless of the device LBA size (it is skipped for 512B LBA devices otherwise).
The second patch is a fix for commit baf844bf4ae3 "dm table: add zoned block devices validation". In that commit, the stacked limits zoned model was not set to the zoned model of the table target devices, leading to the exposed device always being exposed as a regular block device. With this fix, dm-flaky and dm-linear work fine on top of host-managed zoned block devices.
The third patch fixes zoned model validation again to allow for target types emulating a different zoned model than the model of the table target devices, e.g. dm-zoned.
The last patch is dm-zoned with various fixes (mainly crashes on setup error and handling of the metadata cache shrinker). For your review, please use this version.
Thank you.
Best regards.
Damien Le Moal (4):
dm: Fix mapping zone alignment check
dm: Fix staking limits for zoned block device
dm: Fix zoned block device model validation
dm-zoned: Drive-managed zoned block device target
Documentation/device-mapper/dm-zoned.txt | 154 +++ drivers/md/Kconfig | 17 + drivers/md/Makefile | 2 + drivers/md/dm-table.c | 190 +-- drivers/md/dm-zoned-io.c | 1007 ++++++++++++++ drivers/md/dm-zoned-metadata.c | 2220 ++++++++++++++++++++++++++++++ drivers/md/dm-zoned-reclaim.c | 535 +++++++ drivers/md/dm-zoned.h | 530 +++++++ 8 files changed, 4560 insertions(+), 95 deletions(-) create mode 100644 Documentation/device-mapper/dm-zoned.txt create mode 100644 drivers/md/dm-zoned-io.c create mode 100644 drivers/md/dm-zoned-metadata.c create mode 100644 drivers/md/dm-zoned-reclaim.c create mode 100644 drivers/md/dm-zoned.h
Signature · 5 lines
2.9.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
PATCH 1/4 dm: Fix mapping zone alignment check
In device_area_is_invalid(), check a device mapping zone alignment before checking the LBA size so that the check is also performed for devices with a single sector (512B) LBA size.
--- drivers/md/dm-table.c | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-)
drivers/md/dm-table.c +30 -21
@@ -319,27 +319,6 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,return 1 ; } -if (logical_block_size_sectors <=1 ) -return 0 ; - -if (start & (logical_block_size_sectors -1 )) { -DMWARN ("%s: start=%llu not aligned to h/w " -"logical block size %u of %s" , -dm_device_name (ti->table->md), - (unsigned long long )start, - limits->logical_block_size,bdevname (bdev, b)); -return 1 ; - } - -if (len & (logical_block_size_sectors -1 )) { -DMWARN ("%s: len=%llu not aligned to h/w " -"logical block size %u of %s" , -dm_device_name (ti->table->md), - (unsigned long long )len, - limits->logical_block_size,bdevname (bdev, b)); -return 1 ; - } -/* * If the target is mapped to zoned block device(s), check * that the zones are not partially mapped.
@@ -355,6 +334,15 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,return 1 ; } +/* +* Note: The last zone of a zoned block device may be smaller +* than other zones. So for a target mapping the end of a +* zoned block device with such a zone, len would not be zone +* aligned. We do not allow such last smaller zone to be part +* of the mapping here to ensure that mappings with multiple +* devices do not end up with a smaller zone in the middle of +* the sector range. +*/ if (len & (zone_sectors -1 )) { DMWARN("%s: len=%llu not aligned to h/w zone size %u of %s", dm_device_name(ti->table->md),
@@ -364,6 +352,27 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev, } } +if (logical_block_size_sectors <=1 ) +return 0 ; + +if (start & (logical_block_size_sectors -1 )) { +DMWARN ("%s: start=%llu not aligned to h/w " +"logical block size %u of %s" , +dm_device_name (ti->table->md), + (unsigned long long )start, + limits->logical_block_size,bdevname (bdev, b)); +return 1 ; + } + +if (len & (logical_block_size_sectors -1 )) { +DMWARN ("%s: len=%llu not aligned to h/w " +"logical block size %u of %s" , +dm_device_name (ti->table->md), + (unsigned long long )len, + limits->logical_block_size,bdevname (bdev, b)); +return 1 ; + } +return 0 ; }
Signature · 5 lines
2.9.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
PATCH 2/4 dm: Fix staking limits for zoned block device
In reply to Damien Le MoalSince blk_stack_limits() does not change the zoned model type, in dm_calculate_queue_limits(), make sure to report the correct stacked limits by setting the zoned model to the model of the underlying table device, after eventual override by the target .io_hints. This allows removing the local variables zoned_model and zone_sectors and to simplify validate_hardware_zoned_model() interface.
--- drivers/md/dm-table.c | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-)
drivers/md/dm-table.c +19 -27
@@ -1438,16 +1438,17 @@ static bool dm_table_matches_zone_sectors(struct dm_table *t, }static int validate_hardware_zoned_model (struct dm_table *table, -enum blk_zoned_model zoned_model, -unsigned int zone_sectors) +struct queue_limits *limits) { -if (!dm_table_supports_zoned_model (table, zoned_model)) { +if (!dm_table_supports_zoned_model (table, limits->zoned)) {DMERR ("%s: zoned model is inconsistent across all devices" ,dm_device_name (table->md));return -EINVAL ; } -if (zoned_model !=BLK_ZONED_NONE ) { +if (limits->zoned !=BLK_ZONED_NONE ) { +unsigned int zone_sectors = limits->chunk_sectors; +/* Check zone size validity and compatibility */ if (!zone_sectors || !is_power_of_2 (zone_sectors))return -EINVAL ;
@@ -1471,8 +1472,6 @@ int dm_calculate_queue_limits(struct dm_table *table,struct dm_target *ti;struct queue_limits ti_limits;unsigned i; -enum blk_zoned_model zoned_model =BLK_ZONED_NONE ; -unsigned int zone_sectors =0 ;blk_set_stacking_limits (limits);
@@ -1490,15 +1489,6 @@ int dm_calculate_queue_limits(struct dm_table *table, ti->type->iterate_devices (ti, dm_set_device_limits, &ti_limits); -if (zoned_model ==BLK_ZONED_NONE && ti_limits.zoned !=BLK_ZONED_NONE ) { -/* -* After stacking all limits, validate all devices -* in table support this zoned model and zone sectors. -*/ - zoned_model = ti_limits.zoned; - zone_sectors = ti_limits.chunk_sectors; - } -/* Set I/O hints portion of queue limits */ if (ti->type->io_hints) ti->type->io_hints (ti, &ti_limits);
@@ -1523,20 +1513,22 @@ int dm_calculate_queue_limits(struct dm_table *table,dm_device_name (table->md), (unsigned long long ) ti->begin, (unsigned long long) ti->len); + +if (limits->zoned ==BLK_ZONED_NONE && + ti_limits.zoned !=BLK_ZONED_NONE ) { +/* +* By default, the stacked limits zoned model is set to +* BLK_ZONED_NONE in blk_set_stacking_limits(). Update +* this model using the first target model reported +* that is not BLK_ZONED_NONE. This will be either the +* first target device zoned model or the model reported +* by the target .io_hints. +*/ + limits->zoned = ti_limits.zoned; + } } -/* -* Verify that the zoned model and zone sectors, as determined before -* any .io_hints override, are the same across all devices in the table. -* - but if limits->zoned is not BLK_ZONED_NONE validate match for it -* - simillarly, check all devices conform to limits->chunk_sectors if -* .io_hints altered them -*/ -if (limits->zoned !=BLK_ZONED_NONE ) - zoned_model = limits->zoned; -if (limits->chunk_sectors != zone_sectors) - zone_sectors = limits->chunk_sectors; -if (validate_hardware_zoned_model (table, zoned_model, zone_sectors)) +if (validate_hardware_zoned_model (table, limits))return -EINVAL ;return validate_hardware_logical_block_alignment (table, limits);
Signature · 5 lines
2.9.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
PATCH 3/4 dm: Fix zoned block device model validation
In reply to Damien Le MoalA target type may be implementing a zoned model different from that of the table devices. This means that the compatibility of the table devices zoned models and zone sizes should not be checked against the zoned model and zone size indicated by the stacked limits. Fix validate_hardware_zoned_model() so that compatibility of zoned models and zone sizes is done only between the table devices, ignoring the stacked limits values.
--- drivers/md/dm-table.c | 99 +++++++++++++++++++++++++-------------------------- 1 file changed, 49 insertions(+), 50 deletions(-)
drivers/md/dm-table.c +49 -50
@@ -1381,83 +1381,82 @@ bool dm_table_has_no_data_devices(struct dm_table *table)return true; } -static int device_is_zoned_model (struct dm_target *ti,struct dm_dev *dev, -sector_t start,sector_t len,void *data) +static int device_matches_zoned_model (struct dm_target *ti,struct dm_dev *dev, +sector_t start,sector_t len,void *data) { -struct request_queue *q =bdev_get_queue (dev->bdev); +struct block_device *bdev = dev->bdev;enum blk_zoned_model *zoned_model = data; -return q &&blk_queue_zoned_model (q) == *zoned_model; -} - -static bool dm_table_supports_zoned_model (struct dm_table *t, -enum blk_zoned_model zoned_model) -{ -struct dm_target *ti; -unsigned i; - -for (i =0 ; i <dm_table_get_num_targets (t); i++) { - ti =dm_table_get_target (t, i); - -if (zoned_model ==BLK_ZONED_HM && - !dm_target_supports_zoned_hm (ti->type)) -return false; +if (bdev_zoned_model (bdev) ==BLK_ZONED_HM && + !dm_target_supports_zoned_hm (ti->type)) +return 0 ; -if (!ti->type->iterate_devices || - !ti->type->iterate_devices (ti, device_is_zoned_model, &zoned_model)) -return false; - } +if (*zoned_model ==-1 ) { + *zoned_model =bdev_zoned_model (bdev); +return 1 ; + } -return true; +return bdev_zoned_model (bdev) == *zoned_model; }static int device_matches_zone_sectors (struct dm_target *ti,struct dm_dev *dev,sector_t start,sector_t len,void *data) { -struct request_queue *q =bdev_get_queue (dev->bdev); +struct block_device *bdev = dev->bdev;unsigned int *zone_sectors = data; -return q &&blk_queue_zone_sectors (q) == *zone_sectors; -} - -static bool dm_table_matches_zone_sectors (struct dm_table *t, -unsigned int zone_sectors) -{ -struct dm_target *ti; -unsigned i; - -for (i =0 ; i <dm_table_get_num_targets (t); i++) { - ti =dm_table_get_target (t, i); - -if (!ti->type->iterate_devices || - !ti->type->iterate_devices (ti, device_matches_zone_sectors, &zone_sectors)) -return false; +if (*zone_sectors ==-1 ) { + *zone_sectors =bdev_zone_sectors (bdev); +return 1 ; } -return true; +return bdev_zone_sectors (bdev) == *zone_sectors; }static int validate_hardware_zoned_model (struct dm_table *table,struct queue_limits *limits) { -if (!dm_table_supports_zoned_model (table, limits->zoned)) { -DMERR ("%s: zoned model is inconsistent across all devices" , -dm_device_name (table->md)); -return -EINVAL ; - } +enum blk_zoned_model zoned_model =-1 ; +sector_t zone_sectors =-1 ; +struct dm_target *ti; +unsigned i;if (limits->zoned !=BLK_ZONED_NONE ) { -unsigned int zone_sectors = limits->chunk_sectors; - -/* Check zone size validity and compatibility */ +/* Check stacked limits zone size validity */ + zone_sectors = limits->chunk_sectors;if (!zone_sectors || !is_power_of_2 (zone_sectors))return -EINVAL ; + } -if (!dm_table_matches_zone_sectors (table, zone_sectors)) { -DMERR ("%s: zone sectors is inconsistent across all devices" , +/* +* Check table devices zoned model and zone size compatibility. +* This is done for any type of stacked limits zoned model since the +* table targets may have overriden the zoned model of the devices +* (e.g. the target type is doing emulation of a different zoned model). +*/ +for (i =0 ; i <dm_table_get_num_targets (table); i++) { + ti =dm_table_get_target (table, i); + +if (limits->zoned !=BLK_ZONED_NONE && + !ti->type->iterate_devices) +/* Cannot check */ +return -EINVAL ; + +/* Check device zoned model compatibility */ +if (!ti->type->iterate_devices (ti, device_matches_zoned_model, + &zoned_model)) { +DMERR ("%s: zoned model is inconsistent across all devices" ,dm_device_name (table->md));return -EINVAL ; } + +/* Check device zone size compatibility */ +if (!ti->type->iterate_devices (ti, device_matches_zone_sectors, + &zone_sectors)) { +DMERR ("%s: zone sectors is inconsistent across all devices" , +dm_device_name (table->md)); +return -EINVAL ; + } }return 0 ;
Signature · 5 lines
2.9.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
PATCH 4/4 dm-zoned: Drive-managed zoned block device target
In reply to Damien Le MoalThe dm-zoned device mapper target provides transparent write access to zoned block devices (ZBC and ZAC compliant block devices). dm-zoned hides to the device user (a file system or an application doing raw block device accesses) any constraint imposed on write requests by the device, equivalent to a drive-managed zoned block device model.
Write requests are processed using a combination of on-disk buffering using the device conventional zones and direct in-place processing for requests aligned to a zone sequential write pointer position. A background reclaim process implemented using dm_kcopyd_copy ensures that conventional zones are always available for executing unaligned write requests. The reclaim process overhead is minimized by managing buffer zones in a least-recently-written order and first targeting the oldest buffer zones. Doing so, blocks under regular write access (such as metadata blocks of a file system) remain stored in conventional zones, resulting in no apparent overhead.
dm-zoned implementation focus on simplicity and on minimizing overhead (CPU, memory and storage overhead). For a 10TB host-managed disk with 256 MB zones, dm-zoned memory usage per disk instance is at most 4.5 MB and as little as 5 zones will be used internally for storing metadata and performing buffer zone reclaim operations. This is achieved using zone level indirection rather than a full block indirection system for managing block movement between zones.
dm-zoned primary target is host-managed zoned block devices but it can also be used with host-aware device models to mitigate potential device-side performance degradation due to excessive random writing.
dm-zoned target devices can be formatted and checked using the dmzadm utility available at:
https://github.com/hgst/dm-zoned-tools
--- Documentation/device-mapper/dm-zoned.txt | 154 +++ drivers/md/Kconfig | 17 + drivers/md/Makefile | 2 + drivers/md/dm-zoned-io.c | 1007 ++++++++++++++ drivers/md/dm-zoned-metadata.c | 2220 ++++++++++++++++++++++++++++++ drivers/md/dm-zoned-reclaim.c | 535 +++++++ drivers/md/dm-zoned.h | 530 +++++++ 7 files changed, 4465 insertions(+) create mode 100644 Documentation/device-mapper/dm-zoned.txt create mode 100644 drivers/md/dm-zoned-io.c create mode 100644 drivers/md/dm-zoned-metadata.c create mode 100644 drivers/md/dm-zoned-reclaim.c create mode 100644 drivers/md/dm-zoned.h
Documentation/device-mapper/dm-zoned.txt new file +154 -0
@@ -0,0 +1,154 @@ +dm-zoned +======== + +The dm-zoned device mapper exposes a zoned block device (ZBC and ZAC compliant +devices) as a regular block device without any write pattern constraint. In +effect, it implements a drive-managed zoned block device which hides to the +user (a file system or an application doing raw block device accesses) the +sequential write constraints of host-managed zoned block devices and can +mitigate the potential device-side performance degradation due to excessive +random writes on host-aware zoned block devices. + +For a more detailed description of the zoned block device models and +their constraints see (for SCSI devices): + +http://www.t10.org/drafts.htm#ZBC_Family + +and (for ATA devices): + +http://www.t13.org/Documents/UploadedDocuments/docs2015/ +di537r05-Zoned_Device_ATA_Command_Set_ZAC.pdf + +dm-zoned implementation is simple and minimizes system overhead (CPU and +memory usage as well as storage capacity loss). For a 10TB host-manmaged disk +with 256 MB zones, dm-zoned memory usage per disk instance is at most 4.5 MB +and as little as 5 zones will be used internally for storing metadata and +performaing reclaim operations. + +dm-zoned targte devices can be formatted and checked using the dmzadm utility +available at: + +https://github.com/hgst/dm-zoned-tools + +Algorithm +========= + +dm-zoned implements an on-disk buffering scheme to handle non-sequential write +accesses to the sequential zones of a zoned block device. Conventional zones +are used for caching as well as for storing internal metadata. + +The zones of the device are separated into 2 types: + +1) Metadata zones: these are conventional zones used to store metadata. +Metadata zones are not reported as useable capacity to the user. + +2) Data zones: all remaining zones, the vast majority of which will be +sequential zones used exclusively to store user data. The conventional zones +of the device may be used also for buffering user random writes. Data in these +zones may be directly mapped to the conventional zone, but later moved to a +sequential zone after so that the conventional zone can be reused for buffering +incoming random writes. + +dm-zoned exposes a logical device with a sector size of 4096 bytes, +irrespectively of the physical sector size of the backend zoned block device +being used. This allows reducing the amount of metadata needed to manage valid +blocks (blocks written). + +The on-disk metadata format is as follows: + +1) The first block of the first convnetional zone found contains the +super block which describes the amount and position on disk of metadata blocks. + +2) Following the super block, a set of blocks is used to describe the mapping +of the logical device blocks. The mapping is done per chunk of blocks, with +the chunk size equal to the zoned block device size. The mapping table is +indexed by chunk number and each mapping entry indicates the zone number of +the device storing the chunk of data. Each mapping entry may also indicate if +the zone number of a conventional zone used to buffer random modification to +the data zone. + +3) A set of blocks used to store bitmaps indicating the validity of blocks in +the data zones follows the mapping table. A valid block is defined as a block +that was writen and not discarded. For a buffered data chunk, a block is +always valid only in the data zone mapping the chunk or in the buffer zone of +the chunk. + +For a logical chunk mapped to a conventional zone, all write operations are +processed by directly writing to the zone. If the mapping zone is a +sequential zone, the write operation is processed directly only and only if +the write offset within the logical chunk is equal to the write pointer offset +within of the sequential data zone (i.e. the write operation is aligned on the +zone write pointer). Otherwise, write operations are processed indirectly +using a buffer zone. In such case, an unused conventional zone is allocated +and assigned to the chunk being accessed. Writing a block to the buffer zone +of a chunk will automatically invalidate the same block in the sequential zone +mapping the chunk. If all blocks of the sequential zone become invalid, the +zone is freed and the chunk buffer zone becomes the primary zone mapping the +chunk, resulting is native random write performance similar to a regular +block device. + +Read operations are processed according to the block validity information +provided by the bitmaps. Valid blocks are read either from the sequential zone +mapping a chunk, or if the chunk is buffered, from the buffer zone assigned. +If the accessed chunk has no mapping, or the accessed blocks are invalid, the +read buffer is zeroed and the read operation terminated. + +After some time, the limited number of convnetional zones available may be +exhausted (all used to map chunks or buffer sequential zones) and unaligned +writes to unbuffered chunks become impossible. To avoid such situation, a +reclaim process regularly scans used conventional zones and try to reclaim +the least recently used ones copying the valid blocks of the buffer zone +to a free sequential zone. Once the copy completes, the chunk mapping is +updated to point to the sequential zone and the buffer zone freed for reuse. + +Metadata Protection +=================== + +To protect metadata against corruption in case of sudden power loss or system +crash, 2 sets of metadata zones are used. One set, the primary set, is used as +the main metadata region, while the secondary set is used as a staging area. +Modified metadata are first written to the secondary set and validated by +updating the super block in the secondary set, indicating using a generation +counter that this set contains the newest metadata. Once this operation +completes, updates in place of metadata blocks can be done in the primary +metadata set, ensuring that one of the set is always consistent (all +modifications committed or none at all). Flush operations are used as a commit +point. Upon reception of a flush request, metadata modification activity is +temporarily blocked (for both incoming BIO processing and reclaim process) and +all dirty metadata blocks staged and updated. Normal operation is then resumed. +Metadata flush thus only temporarily delays write and discard requests. Read +requests can be concurrently processed while metadata flush is being executed. + +Usage +===== + +A zoned block device must first be formatted using the dmzadm tool. This will +analyze the device zone configuration, determine where to place the metadata +sets on the device and initialize the metadata sets. + +Ex: + +dmzadm --format /dev/sdxx + +For a formatted device, the target can be created normally with the dmsetup +utility. The only parameter that dm-zoned requires is the device name. + +Example scripts +=============== + +[[ +#!/bin/sh + +if [ $# -ne 1 ]; then + echo "Usage: $0 <Zoned device path>" + exit 1 +fi + +dev="${1}" +shift + +modprobe dm-zoned + +echo "0 `blockdev --getsize ${dev}` dm-zoned ${dev}" | dmsetup create dmz-`basename ${dev}` +]] +
drivers/md/Kconfig +17 -0
@@ -521,6 +521,23 @@ config DM_INTEGRITY To compile this code as a module, choose M here: the module will be called dm-integrity. +config DM_ZONED + tristate "Drive-managed zoned block device target support" + depends on BLK_DEV_DM + depends on BLK_DEV_ZONED + ---help--- + This device-mapper target takes a host-managed or host-aware zoned + block device and expose most of its capacity as a regular block + device (drive-managed zoned block device) without any write + constraint. This is mainly intended for use with file systems that + do not natively support zoned block devices but still want to + benefit from the increased capacity offered by SMR disks. Other uses + by applications using raw block devices (for example object stores) + is also possible. + + To compile this code as a module, choose M here: the module will + be called dm-zoned. + If unsure, say N. endif # MD
drivers/md/Makefile +2 -0
@@ -20,6 +20,7 @@ dm-era-y += dm-era-target.o dm-verity-y += dm-verity-target.o md-mod-y += md.o bitmap.o raid456-y += raid5.o raid5-cache.o raid5-ppl.o +dm-zoned-y += dm-zoned-io.o dm-zoned-metadata.o dm-zoned-reclaim.o # Note: link order is important. All raid personalities # and must come before md.o, as they each initialise
@@ -60,6 +61,7 @@ obj-$(CONFIG_DM_CACHE_SMQ) += dm-cache-smq.o obj-$(CONFIG_DM_ERA) += dm-era.o obj-$(CONFIG_DM_LOG_WRITES) += dm-log-writes.o obj-$(CONFIG_DM_INTEGRITY) += dm-integrity.o +obj-$(CONFIG_DM_ZONED) += dm-zoned.o ifeq ($(CONFIG_DM_UEVENT),y) dm-mod-objs += dm-uevent.o
drivers/md/dm-zoned-io.c new file +1007 -0
1,007 lines not on this page · raw message
drivers/md/dm-zoned-metadata.c new file +2220 -0
1,802 lines not on this page · raw message
drivers/md/dm-zoned-reclaim.c new file +535 -0
535 lines not on this page · raw message
drivers/md/dm-zoned.h new file +530 -0
530 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 5 lines
2.9.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
Part of the diff is not shown here. View the raw message.
Quoted 8 lines · Damien Le Moal
Mike,
The first 3 patches of this series are incremental fixes for the zoned block device support patches that you committed to the for-4.13/dm branch.
The first patch correct the zone alignement checks so that the check is performed for any device, regardless of the device LBA size (it is skipped for 512B LBA devices otherwise).
I folded this first patch into the original commit (baf844bf4ae3).
Quoted 9 lines
The second patch is a fix for commit
baf844bf4ae3"dm table: add zoned block devices validation". In that commit, the stacked limits zoned model was not set to the zoned model of the table target devices, leading to the exposed device always being exposed as a regular block device. With this fix, dm-flaky and dm-linear work fine on top of host-managed zoned block devices.The third patch fixes zoned model validation again to allow for target types emulating a different zoned model than the model of the table target devices, e.g. dm-zoned.
The 2nd and 3rd seem over-done to me. After spending more time than ideal, the following patch would seem to be the equivalent to what you've done in patches 2 and 3 (sans the "cleanup" of passing limits to validate_hardware_zoned_model):
drivers/md/dm-table.c +25 -5
@@ -1523,19 +1524,39 @@ int dm_calculate_queue_limits(struct dm_table *table,dm_device_name (table->md), (unsigned long long ) ti->begin, (unsigned long long) ti->len); + +/* +* FIXME: this should likely be moved to blk_stack_limits(), would +* also eliminate limits->zoned stacking hack in dm_set_device_limits() +*/ +if (limits->zoned ==BLK_ZONED_NONE && ti_limits.zoned !=BLK_ZONED_NONE ) { +/* +* By default, the stacked limits zoned model is set to +* BLK_ZONED_NONE in blk_set_stacking_limits(). Update +* this model using the first target model reported +* that is not BLK_ZONED_NONE. This will be either the +* first target device zoned model or the model reported +* by the target .io_hints. +*/ + limits->zoned = ti_limits.zoned; + } }/* * Verify that the zoned model and zone sectors, as determined before * any .io_hints override, are the same across all devices in the table. -* - but if limits->zoned is not BLK_ZONED_NONE validate match for it -* - simillarly, check all devices conform to limits->chunk_sectors if -* .io_hints altered them +* - this is especially relevant if .io_hints is emulating a disk-managed +* zoned model (aka BLK_ZONED_NONE) on host-managed zoned block devices. +* BUT... */ -if (limits->zoned !=BLK_ZONED_NONE ) +if (limits->zoned !=BLK_ZONED_NONE ) { +/* +* ...IF the above limits stacking determined a zoned model +* validate that all of the table's devices conform to it. +*/ zoned_model = limits->zoned; -if (limits->chunk_sectors != zone_sectors) zone_sectors = limits->chunk_sectors; + }if (validate_hardware_zoned_model (table, zoned_model, zone_sectors))return -EINVAL ;
Anyway, I've folded this into the original commit too. If you could verify it works with your scenarios I'd appreciate it.
FYI, any additional cosmetic cleanup can wait (I happen to think this code is clearer than how you relied on the matches functions to initialize a temporary value).
I also folded in an validate_hardware_zoned_model() optimization to return early if zoned_model == BLK_ZONED_NONE, please see/test the rolled-up end result here:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-4.13/dm&id=9a6b54360f147c2d25fba7debc31a3251b804cc2
Also, please note that I've forcibly rebased linux-dm.git's 'for-4.13/dm' and staged it in 'for-next'.
Quoted 3 lines
The last patch is dm-zoned with various fixes (mainly crashes on setup error and handling of the metadata cache shrinker). For your review, please use this version.
Will do, thanks.
Mike
Mike,
Quoted 5 lines · Mike Snitzer
Quoted 2 lines · Damien Le Moal
Mike,
Quoted 8 lines
Quoted 6 lines
The first 3 patches of this series are incremental fixes for the zoned block device support patches that you committed to the for-4.13/dm branch.
The first patch correct the zone alignement checks so that the check is performed for any device, regardless of the device LBA size (it is skipped for 512B LBA devices otherwise).
I folded this first patch into the original commit (
baf844bf4ae3).
Great. Thanks.
Quoted 64 lines
Quoted 9 lines
The second patch is a fix for commit
baf844bf4ae3"dm table: add zoned block devices validation". In that commit, the stacked limits zoned model was not set to the zoned model of the table target devices, leading to the exposed device always being exposed as a regular block device. With this fix, dm-flaky and dm-linear work fine on top of host-managed zoned block devices.The third patch fixes zoned model validation again to allow for target types emulating a different zoned model than the model of the table target devices, e.g. dm-zoned.
The 2nd and 3rd seem over-done to me. After spending more time than ideal, the following patch would seem to be the equivalent to what you've done in patches 2 and 3 (sans the "cleanup" of passing limits to
validate_hardware_zoned_model):drivers/md/dm-table.c +25
-5@@ -1523,19 +1524,39 @@ int dm_calculate_queue_limits(struct dm_table *table,dm_device_name (table->md), (unsigned long long ) ti->begin, (unsigned long long) ti->len); + +/* +* FIXME: this should likely be moved to blk_stack_limits(), would +* also eliminate limits->zoned stacking hack in dm_set_device_limits() +*/ +if (limits->zoned ==BLK_ZONED_NONE && ti_limits.zoned !=BLK_ZONED_NONE ) { +/* +* By default, the stacked limits zoned model is set to +* BLK_ZONED_NONE in blk_set_stacking_limits(). Update +* this model using the first target model reported +* that is not BLK_ZONED_NONE. This will be either the +* first target device zoned model or the model reported +* by the target .io_hints. +*/ + limits->zoned = ti_limits.zoned; + } }/* * Verify that the zoned model and zone sectors, as determined before * any .io_hints override, are the same across all devices in the table. -* - but if limits->zoned is not BLK_ZONED_NONE validate match for it -* - simillarly, check all devices conform to limits->chunk_sectors if -* .io_hints altered them +* - this is especially relevant if .io_hints is emulating a disk-managed +* zoned model (aka BLK_ZONED_NONE) on host-managed zoned block devices. +* BUT... */ -if (limits->zoned !=BLK_ZONED_NONE ) +if (limits->zoned !=BLK_ZONED_NONE ) { +/* +* ...IF the above limits stacking determined a zoned model +* validate that all of the table's devices conform to it. +*/ zoned_model = limits->zoned; -if (limits->chunk_sectors != zone_sectors) zone_sectors = limits->chunk_sectors; + }if (validate_hardware_zoned_model (table, zoned_model, zone_sectors))return -EINVAL ;
Quoted 2 lines
Anyway, I've folded this into the original commit too. If you could verify it works with your scenarios I'd appreciate it.
I tested with dm-linear, dm-flakey and dm-zoned. No problems detected, the end device zone model and zone size was always correct. I also tried all invalid setup I could generate and all were properly caught.
There is however one case that will not work: an HM (or HA) emulating target on top of a regular (NONE) block device. In that case, we will end up checking that the underlying devices are compatible HM/HA, whih will fail. But since none of the existing targets currently do this, I guess the code is OK as is. What do you think ?
Quoted 3 lines
FYI, any additional cosmetic cleanup can wait (I happen to think this code is clearer than how you relied on the matches functions to initialize a temporary value).
OK. No problem.
Quoted 7 lines
I also folded in an
validate_hardware_zoned_model()optimization to return early ifzoned_model==BLK_ZONED_NONE, please see/test the rolled-up end result here:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-4.13/dm&id=9a6b54360f147c2d25fba7debc31a3251b804cc2Also, please note that I've forcibly rebased linux-dm.git's 'for-4.13/dm' and staged it in 'for-next'.
I tested this tree unmodified. No problem detected. Thank you.
Best regards.
Signature · 6 lines
Damien Le Moal, Western Digital Research Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system.
Quoted 90 lines · Damien Le Moal
Mike,
Quoted 5 lines · Mike Snitzer
Quoted 2 lines · Damien Le Moal
Mike,
Quoted 8 lines
Quoted 6 lines
The first 3 patches of this series are incremental fixes for the zoned block device support patches that you committed to the for-4.13/dm branch.
The first patch correct the zone alignement checks so that the check is performed for any device, regardless of the device LBA size (it is skipped for 512B LBA devices otherwise).
I folded this first patch into the original commit (
baf844bf4ae3).Great. Thanks.
Quoted 64 lines
Quoted 9 lines
The second patch is a fix for commit
baf844bf4ae3"dm table: add zoned block devices validation". In that commit, the stacked limits zoned model was not set to the zoned model of the table target devices, leading to the exposed device always being exposed as a regular block device. With this fix, dm-flaky and dm-linear work fine on top of host-managed zoned block devices.The third patch fixes zoned model validation again to allow for target types emulating a different zoned model than the model of the table target devices, e.g. dm-zoned.
The 2nd and 3rd seem over-done to me. After spending more time than ideal, the following patch would seem to be the equivalent to what you've done in patches 2 and 3 (sans the "cleanup" of passing limits to
validate_hardware_zoned_model):drivers/md/dm-table.c +25
-5@@ -1523,19 +1524,39 @@ int dm_calculate_queue_limits(struct dm_table *table,dm_device_name (table->md), (unsigned long long ) ti->begin, (unsigned long long) ti->len); + +/* +* FIXME: this should likely be moved to blk_stack_limits(), would +* also eliminate limits->zoned stacking hack in dm_set_device_limits() +*/ +if (limits->zoned ==BLK_ZONED_NONE && ti_limits.zoned !=BLK_ZONED_NONE ) { +/* +* By default, the stacked limits zoned model is set to +* BLK_ZONED_NONE in blk_set_stacking_limits(). Update +* this model using the first target model reported +* that is not BLK_ZONED_NONE. This will be either the +* first target device zoned model or the model reported +* by the target .io_hints. +*/ + limits->zoned = ti_limits.zoned; + } }/* * Verify that the zoned model and zone sectors, as determined before * any .io_hints override, are the same across all devices in the table. -* - but if limits->zoned is not BLK_ZONED_NONE validate match for it -* - simillarly, check all devices conform to limits->chunk_sectors if -* .io_hints altered them +* - this is especially relevant if .io_hints is emulating a disk-managed +* zoned model (aka BLK_ZONED_NONE) on host-managed zoned block devices. +* BUT... */ -if (limits->zoned !=BLK_ZONED_NONE ) +if (limits->zoned !=BLK_ZONED_NONE ) { +/* +* ...IF the above limits stacking determined a zoned model +* validate that all of the table's devices conform to it. +*/ zoned_model = limits->zoned; -if (limits->chunk_sectors != zone_sectors) zone_sectors = limits->chunk_sectors; + }if (validate_hardware_zoned_model (table, zoned_model, zone_sectors))return -EINVAL ;Quoted 2 lines
Anyway, I've folded this into the original commit too. If you could verify it works with your scenarios I'd appreciate it.
I tested with dm-linear, dm-flakey and dm-zoned. No problems detected, the end device zone model and zone size was always correct. I also tried all invalid setup I could generate and all were properly caught.
Quoted 5 lines
There is however one case that will not work: an HM (or HA) emulating target on top of a regular (NONE) block device. In that case, we will end up checking that the underlying devices are compatible HM/HA, whih will fail. But since none of the existing targets currently do this, I guess the code is OK as is. What do you think ?
Yeah, I think it best to fix that if/when there is a need.
Quoted 11 lines
Quoted 3 lines
FYI, any additional cosmetic cleanup can wait (I happen to think this code is clearer than how you relied on the matches functions to initialize a temporary value).
OK. No problem.
Quoted 5 lines
I also folded in an
validate_hardware_zoned_model()optimization to return early ifzoned_model==BLK_ZONED_NONE, please see/test the rolled-up end result here:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-4.13/dm&id=9a6b54360f147c2d25fba7debc31a3251b804cc2
Quoted 5 lines
Quoted 2 lines
Also, please note that I've forcibly rebased linux-dm.git's 'for-4.13/dm' and staged it in 'for-next'.
I tested this tree unmodified. No problem detected. Thank you.
Good news, thanks for the review/testing.
FYI: my review of dm-zoned will be focused on DM target correctness (suspend/resume quirks, no allocations in the IO path that aren't backed by a mempool, coding style nits, etc). I don't know enough about zoned block devices to weigh-in on those details. Ultimately I'll be deferring to you, others on your team, and others in the community that are more invested in zoned block devices to steer and stabilize this target.
Anyway, hopefully my review will be fairly quick and I can get dm-zoned staged for 4.13 by end of day tomorrow.
Mike
Quoted 10 lines · Mike Snitzer
FYI: my review of dm-zoned will be focused on DM target correctness (suspend/resume quirks, no allocations in the IO path that aren't backed by a mempool, coding style nits, etc). I don't know enough about zoned block devices to weigh-in on those details. Ultimately I'll be deferring to you, others on your team, and others in the community that are more invested in zoned block devices to steer and stabilize this target.
Anyway, hopefully my review will be fairly quick and I can get dm-zoned staged for 4.13 by end of day tomorrow.
I made a go of it but I'm getting hung up on quite a lot of code that doesn't conform to, what I'd like to think is, the cleaner nature of how DM targets that are split across multiple files should be.
You basically slammed everything into 'struct dmz_target' and passed dmz everywhere. I tried to split out a 'struct dmz_metadata' (and got quite far!) but finally gave up because affecting that churn was killing me slowly. Anyway, here is where I left off:
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=dm-zoned
In hindsight, maybe I should've just responded with the laundry list of things I saw so that you could fix them. But if you see changes that you like in that branch feel free to pull them in to a new version of dm-zoned that you resubmit.
As for splitting out a 'struct dmz_metadata'.. I'd really prefer _some_ separation but there is little point with doing so if we're going to just half-ass it and add in a back-pointer to the 'struct dmz_target' to access certain members. I was left unhappy with my attempt.. again, was a shit-show of churn.
I think this target needs a more critical eye on the various places IO is being submitted and where allocations are occuring. I allowed myself to get hung up on code movement when I should've focused on more constructive design choices you made.
Mike
Mike,
Thank you very much for the very detailed review and all the cleanup.
Quoted 29 lines · Mike Snitzer
Quoted 10 lines · Mike Snitzer
FYI: my review of dm-zoned will be focused on DM target correctness (suspend/resume quirks, no allocations in the IO path that aren't backed by a mempool, coding style nits, etc). I don't know enough about zoned block devices to weigh-in on those details. Ultimately I'll be deferring to you, others on your team, and others in the community that are more invested in zoned block devices to steer and stabilize this target.
Anyway, hopefully my review will be fairly quick and I can get dm-zoned staged for 4.13 by end of day tomorrow.
I made a go of it but I'm getting hung up on quite a lot of code that doesn't conform to, what I'd like to think is, the cleaner nature of how DM targets that are split across multiple files should be.
You basically slammed everything into 'struct
dmz_target' and passed dmz everywhere. I tried to split out a 'structdmz_metadata' (and got quite far!) but finally gave up because affecting that churn was killing me slowly. Anyway, here is where I left off:
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=dm-zonedIn hindsight, maybe I should've just responded with the laundry list of things I saw so that you could fix them. But if you see changes that you like in that branch feel free to pull them in to a new version of dm-zoned that you resubmit.
Quoted 5 lines
As for splitting out a 'struct
dmz_metadata'.. I'd really prefer _some_ separation but there is little point with doing so if we're going to just half-ass it and add in a back-pointer to the 'structdmz_target' to access certain members. I was left unhappy with my attempt.. again, was a shit-show of churn.
I continued and finished the separation. There is no back-pointer anymore. All functions in dm-zoned-metadata.c take the metadata struct pointer as argument. Other functions in dm-zoned-target.c and dm-zoned-reclaim.c take the dmz_target pointer as argument. To do this, I had to add a "struct dmz_dev" to store the static information about the device being used (bdev, name, capacity, number of zones, zone size). This does cleanup further the initialization and tear-down path. I also moved around and renamed some functions to further cleanup the code and make it easier to read. At this point, I think it would be easy to also separate all fields needed for reclaim from the dmz_target structure. But I have not pushed changes this far as the amount of data needed for reclaim is rather small.
Quoted 4 lines
I think this target needs a more critical eye on the various places IO is being submitted and where allocations are occuring. I allowed myself to get hung up on code movement when I should've focused on more constructive design choices you made.
I did address some of the "FIXME" notes you added. The main one is the BIO cloning in the I/O path. I removed most of that and added a .end_io method for completion processing. The only place were I do not see how to remove the call to bio_clone() is during read BIO processing: since a read BIO may end up being split between buffer zone, sequential zone and simple buffer zero-out, fragmentation of the read BIO is sometimes necessary and so need a clone.
There is one "FIXME" that I did not address: the allocation of metadata blocks on cache miss. This is in the I/O path, but called only from the context of the chunk workers, so a different context than the BIO submit one. I do not see a problem with this. Please let me know if you would prefer another solution.
I am running tests against the new version created with all these changes. If everything goes well, I will send it out tomorrow.
Best regards.
Signature · 2 lines
Damien Le Moal, Western Digital
Quoted 40 lines · Damien Le Moal
Mike,
Thank you very much for the very detailed review and all the cleanup.
Quoted 29 lines · Mike Snitzer
Quoted 10 lines · Mike Snitzer
FYI: my review of dm-zoned will be focused on DM target correctness (suspend/resume quirks, no allocations in the IO path that aren't backed by a mempool, coding style nits, etc). I don't know enough about zoned block devices to weigh-in on those details. Ultimately I'll be deferring to you, others on your team, and others in the community that are more invested in zoned block devices to steer and stabilize this target.
Anyway, hopefully my review will be fairly quick and I can get dm-zoned staged for 4.13 by end of day tomorrow.
I made a go of it but I'm getting hung up on quite a lot of code that doesn't conform to, what I'd like to think is, the cleaner nature of how DM targets that are split across multiple files should be.
You basically slammed everything into 'struct
dmz_target' and passed dmz everywhere. I tried to split out a 'structdmz_metadata' (and got quite far!) but finally gave up because affecting that churn was killing me slowly. Anyway, here is where I left off:
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=dm-zonedIn hindsight, maybe I should've just responded with the laundry list of things I saw so that you could fix them. But if you see changes that you like in that branch feel free to pull them in to a new version of dm-zoned that you resubmit.
Quoted 5 lines
As for splitting out a 'struct
dmz_metadata'.. I'd really prefer _some_ separation but there is little point with doing so if we're going to just half-ass it and add in a back-pointer to the 'structdmz_target' to access certain members. I was left unhappy with my attempt.. again, was a shit-show of churn.
Quoted 12 lines
I continued and finished the separation. There is no back-pointer anymore. All functions in
dm-zoned-metadata.ctake the metadata struct pointer as argument. Other functions indm-zoned-target.canddm-zoned-reclaim.ctake thedmz_targetpointer as argument. To do this, I had to add a "structdmz_dev" to store the static information about the device being used (bdev, name, capacity, number of zones, zone size). This does cleanup further the initialization and tear-down path. I also moved around and renamed some functions to further cleanup the code and make it easier to read. At this point, I think it would be easy to also separate all fields needed for reclaim from thedmz_targetstructure. But I have not pushed changes this far as the amount of data needed for reclaim is rather small.
Sounds good.
Quoted 13 lines
Quoted 4 lines
I think this target needs a more critical eye on the various places IO is being submitted and where allocations are occuring. I allowed myself to get hung up on code movement when I should've focused on more constructive design choices you made.
I did address some of the "FIXME" notes you added. The main one is the BIO cloning in the I/O path. I removed most of that and added a .end_io method for completion processing. The only place were I do not see how to remove the call to
bio_clone()is during read BIO processing: since a read BIO may end up being split between buffer zone, sequential zone and simple buffer zero-out, fragmentation of the read BIO is sometimes necessary and so need a clone.
Quoted 8 lines
There is one "FIXME" that I did not address: the allocation of metadata blocks on cache miss. This is in the I/O path, but called only from the context of the chunk workers, so a different context than the BIO submit one. I do not see a problem with this. Please let me know if you would prefer another solution.
I am running tests against the new version created with all these changes. If everything goes well, I will send it out tomorrow.
Great, thanks for carrying it forward.
Mike
Quoted 7 lines · Damien Le Moal
I did address some of the "FIXME" notes you added. The main one is the BIO cloning in the I/O path. I removed most of that and added a .end_io method for completion processing. The only place were I do not see how to remove the call to
bio_clone()is during read BIO processing: since a read BIO may end up being split between buffer zone, sequential zone and simple buffer zero-out, fragmentation of the read BIO is sometimes necessary and so need a clone.
So shouldn't it be possible to not allow a given bio to cross zone boundaries by using dm_accept_partial_bio()?
Like you're already doing in dmz_map() actually... so why do you need to account for crossing zone boundaries on read later on in dmz_submit_read_bio()?
Is it that these zones aren't easily known up front (in dmz_map)?
Mike
Mike,
Quoted 11 lines · Mike Snitzer
Quoted 7 lines · Damien Le Moal
I did address some of the "FIXME" notes you added. The main one is the BIO cloning in the I/O path. I removed most of that and added a .end_io method for completion processing. The only place were I do not see how to remove the call to
bio_clone()is during read BIO processing: since a read BIO may end up being split between buffer zone, sequential zone and simple buffer zero-out, fragmentation of the read BIO is sometimes necessary and so need a clone.
Quoted 6 lines
So shouldn't it be possible to not allow a given bio to cross zone boundaries by using
dm_accept_partial_bio()?Like you're already doing in
dmz_map()actually... so why do you need to account for crossing zone boundaries on read later on indmz_submit_read_bio()?
It is not crossing of zone or chunk boundaries that is being delt with here. When the read BIO is being processed, we already know that it does not cross chunk boundaries thanks to dmz_map(). Since chunks are mapped to entire zones, the BIO does not cross a zone boundary either.
But the blocks to read within the chunk may be (1) invalid if they were never written, (2) valid in the chunk data zone or (3) valid in the chunk write buffer zone (this case exists only if the chunk is mapped to a sequential zone.
So we need to examine the zones block bitmaps to discover this and eventually split the BIO in several fragments if needed. Hence the need for bio_clone().
If this processing was done within the context of dmz_map(), we could of course use dm_accept_partial_bio() for splitting the BIO. But I avoided this method as access to the zone bitmap may trigger metadata I/Os, which is not very nice in the context of the user bio_submit(). There is also the fact that dm-zoned does not have per zone locks to deal with concurrent accesses to the same chunk. All BIO processing for a chunk get serialized in the chunk work. This is mandatory to ensure sequential write to sequential zones whenever possible.
Quoted 1 line
Is it that these zones aren't easily known up front (in
dmz_map)?
dmz_map() does the mapping discovery using the mapping table that is pinned-down in memory. So no metadata I/O trigger. But doing more than that could trigger metadata I/Os, which I wanted to avoid.
On another note, I just posted an additional small patch for fixing 2
problems: an overflow in the target length calculation and a bad mistake in the patch with the suspend method setup that caused compilation error. My apologies for these mistakes. They were not in my local tree when I tested. I think I messed up with the merging of all my local patches.
I checked your tree again and can confirm now that I am in sync. I will keep testing anyway to make sure I did not do anything else wrong.
Thank you.
Best regards.
Signature · 7 lines
Damien Le Moal, Ph.D. Sr Manager, System Software Group, Western Digital Research [email protected] Tel: (+81) 0466-98-3593 (Ext. 51-3593) 1 kirihara-cho, Fujisawa, Kanagawa, 252-0888 Japan www.wdc.com, www.hgst.com