Commit 20b34660 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Jim Harris
Browse files

bdev: Locate all hot data in spdk_bdev_desc to the first cache line



spdk_bdev_desc is a small data structure but the next patch will add one
hot data into it. To ensure the new hot data to be in the first cache
line, consolidate all hot data in spdk_bdev_desc to the first cache
line.

Signed-off-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I6beab513e4b19b706a31f9c73b1053c1161778dd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25454


Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
parent 2a91567e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -333,15 +333,15 @@ struct media_event_entry {

struct spdk_bdev_desc {
	struct spdk_bdev		*bdev;
	bool				write;
	bool				memory_domains_supported;
	bool				accel_sequence_supported[SPDK_BDEV_NUM_IO_TYPES];
	struct spdk_thread		*thread;
	struct {
		spdk_bdev_event_cb_t event_fn;
		void *ctx;
	}				callback;
	bool				closed;
	bool				write;
	bool				memory_domains_supported;
	bool				accel_sequence_supported[SPDK_BDEV_NUM_IO_TYPES];
	struct spdk_spinlock		spinlock;
	uint32_t			refs;
	TAILQ_HEAD(, media_event_entry)	pending_media_events;