Skip to content

Commit 04036bb

Browse files
committed
bdev: adjust padding to ensure cache line alignment
There is a custom field ext_io_flags which is not part of upstream spdk_bdev_io. This means that structure size and fields offsets change and the static assert for driver_ctx cache alignment requirement fails. This patch adjusts the padding so that the offset for driver_ctx remain cache aligned. Signed-off-by: Diwakar Sharma <[email protected]>
1 parent 8ac4a80 commit 04036bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/spdk/bdev_module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ struct spdk_bdev_io {
11221122
struct spdk_bdev_io_zone_mgmt_params zone_mgmt;
11231123
} u;
11241124

1125-
uint8_t reserved3[40];
1125+
uint8_t reserved3[32];
11261126

11271127
/**
11281128
* Fields that are used internally by the bdev subsystem. Bdev modules

0 commit comments

Comments
 (0)