aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-11-29 03:29:38 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2011-12-14 06:28:13 -0500
commite0a53e70e8d519579d92c150606ece22333645cb (patch)
tree7f28469be2885fd7979ec584dcc65b3b35748871 /include
parent2e88efd3aaafa0df05593cdfa5fd17afe922781d (diff)
target: remove overagressive ____cacheline_aligned annoations
If we want dynamically allocated objects to be cacheline aligned we need to tell that to the slab allocator by using the proper flags and not by liberally sprinkling annotations onto all structures. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r--include/target/target_core_base.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 311f5fc607e6..cadd4f6e57e1 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -252,7 +252,7 @@ enum tcm_tmrsp_table {
252 252
253struct se_obj { 253struct se_obj {
254 atomic_t obj_access_count; 254 atomic_t obj_access_count;
255} ____cacheline_aligned; 255};
256 256
257/* 257/*
258 * Used by TCM Core internally to signal if ALUA emulation is enabled or 258 * Used by TCM Core internally to signal if ALUA emulation is enabled or
@@ -299,7 +299,7 @@ struct t10_alua {
299 struct config_group alua_tg_pt_gps_group; 299 struct config_group alua_tg_pt_gps_group;
300 int (*alua_state_check)(struct se_cmd *, unsigned char *, u8 *); 300 int (*alua_state_check)(struct se_cmd *, unsigned char *, u8 *);
301 struct list_head tg_pt_gps_list; 301 struct list_head tg_pt_gps_list;
302} ____cacheline_aligned; 302};
303 303
304struct t10_alua_lu_gp { 304struct t10_alua_lu_gp {
305 u16 lu_gp_id; 305 u16 lu_gp_id;
@@ -310,7 +310,7 @@ struct t10_alua_lu_gp {
310 struct config_group lu_gp_group; 310 struct config_group lu_gp_group;
311 struct list_head lu_gp_node; 311 struct list_head lu_gp_node;
312 struct list_head lu_gp_mem_list; 312 struct list_head lu_gp_mem_list;
313} ____cacheline_aligned; 313};
314 314
315struct t10_alua_lu_gp_member { 315struct t10_alua_lu_gp_member {
316 bool lu_gp_assoc; 316 bool lu_gp_assoc;
@@ -319,7 +319,7 @@ struct t10_alua_lu_gp_member {
319 struct t10_alua_lu_gp *lu_gp; 319 struct t10_alua_lu_gp *lu_gp;
320 struct se_device *lu_gp_mem_dev; 320 struct se_device *lu_gp_mem_dev;
321 struct list_head lu_gp_mem_list; 321 struct list_head lu_gp_mem_list;
322} ____cacheline_aligned; 322};
323 323
324struct t10_alua_tg_pt_gp { 324struct t10_alua_tg_pt_gp {
325 u16 tg_pt_gp_id; 325 u16 tg_pt_gp_id;
@@ -342,7 +342,7 @@ struct t10_alua_tg_pt_gp {
342 struct config_group tg_pt_gp_group; 342 struct config_group tg_pt_gp_group;
343 struct list_head tg_pt_gp_list; 343 struct list_head tg_pt_gp_list;
344 struct list_head tg_pt_gp_mem_list; 344 struct list_head tg_pt_gp_mem_list;
345} ____cacheline_aligned; 345};
346 346
347struct t10_alua_tg_pt_gp_member { 347struct t10_alua_tg_pt_gp_member {
348 bool tg_pt_gp_assoc; 348 bool tg_pt_gp_assoc;
@@ -351,7 +351,7 @@ struct t10_alua_tg_pt_gp_member {
351 struct t10_alua_tg_pt_gp *tg_pt_gp; 351 struct t10_alua_tg_pt_gp *tg_pt_gp;
352 struct se_port *tg_pt; 352 struct se_port *tg_pt;
353 struct list_head tg_pt_gp_mem_list; 353 struct list_head tg_pt_gp_mem_list;
354} ____cacheline_aligned; 354};
355 355
356struct t10_vpd { 356struct t10_vpd {
357 unsigned char device_identifier[INQUIRY_VPD_DEVICE_IDENTIFIER_LEN]; 357 unsigned char device_identifier[INQUIRY_VPD_DEVICE_IDENTIFIER_LEN];
@@ -361,7 +361,7 @@ struct t10_vpd {
361 u32 association; 361 u32 association;
362 u32 device_identifier_type; 362 u32 device_identifier_type;
363 struct list_head vpd_list; 363 struct list_head vpd_list;
364} ____cacheline_aligned; 364};
365 365
366struct t10_wwn { 366struct t10_wwn {
367 char vendor[8]; 367 char vendor[8];
@@ -372,7 +372,7 @@ struct t10_wwn {
372 struct se_subsystem_dev *t10_sub_dev; 372 struct se_subsystem_dev *t10_sub_dev;
373 struct config_group t10_wwn_group; 373 struct config_group t10_wwn_group;
374 struct list_head t10_vpd_list; 374 struct list_head t10_vpd_list;
375} ____cacheline_aligned; 375};
376 376
377 377
378/* 378/*
@@ -425,7 +425,7 @@ struct t10_pr_registration {
425 struct list_head pr_reg_aptpl_list; 425 struct list_head pr_reg_aptpl_list;
426 struct list_head pr_reg_atp_list; 426 struct list_head pr_reg_atp_list;
427 struct list_head pr_reg_atp_mem_list; 427 struct list_head pr_reg_atp_mem_list;
428} ____cacheline_aligned; 428};
429 429
430/* 430/*
431 * This set of function pointer ops is set based upon SPC3_PERSISTENT_RESERVATIONS, 431 * This set of function pointer ops is set based upon SPC3_PERSISTENT_RESERVATIONS,
@@ -466,20 +466,20 @@ struct t10_reservation {
466 struct list_head registration_list; 466 struct list_head registration_list;
467 struct list_head aptpl_reg_list; 467 struct list_head aptpl_reg_list;
468 struct t10_reservation_ops pr_ops; 468 struct t10_reservation_ops pr_ops;
469} ____cacheline_aligned; 469};
470 470
471struct se_queue_req { 471struct se_queue_req {
472 int state; 472 int state;
473 struct se_cmd *cmd; 473 struct se_cmd *cmd;
474 struct list_head qr_list; 474 struct list_head qr_list;
475} ____cacheline_aligned; 475};
476 476
477struct se_queue_obj { 477struct se_queue_obj {
478 atomic_t queue_cnt; 478 atomic_t queue_cnt;
479 spinlock_t cmd_queue_lock; 479 spinlock_t cmd_queue_lock;
480 struct list_head qobj_list; 480 struct list_head qobj_list;
481 wait_queue_head_t thread_wq; 481 wait_queue_head_t thread_wq;
482} ____cacheline_aligned; 482};
483 483
484struct se_task { 484struct se_task {
485 unsigned long long task_lba; 485 unsigned long long task_lba;
@@ -496,7 +496,7 @@ struct se_task {
496 struct list_head t_state_list; 496 struct list_head t_state_list;
497 bool t_state_active; 497 bool t_state_active;
498 struct completion task_stop_comp; 498 struct completion task_stop_comp;
499} ____cacheline_aligned; 499};
500 500
501struct se_cmd { 501struct se_cmd {
502 /* SAM response code being sent to initiator */ 502 /* SAM response code being sent to initiator */
@@ -582,7 +582,7 @@ struct se_cmd {
582 struct list_head t_task_list; 582 struct list_head t_task_list;
583 u32 t_task_list_num; 583 u32 t_task_list_num;
584 584
585} ____cacheline_aligned; 585};
586 586
587struct se_tmr_req { 587struct se_tmr_req {
588 /* Task Management function to be preformed */ 588 /* Task Management function to be preformed */
@@ -600,7 +600,7 @@ struct se_tmr_req {
600 struct se_device *tmr_dev; 600 struct se_device *tmr_dev;
601 struct se_lun *tmr_lun; 601 struct se_lun *tmr_lun;
602 struct list_head tmr_list; 602 struct list_head tmr_list;
603} ____cacheline_aligned; 603};
604 604
605struct se_ua { 605struct se_ua {
606 u8 ua_asc; 606 u8 ua_asc;
@@ -608,7 +608,7 @@ struct se_ua {
608 struct se_node_acl *ua_nacl; 608 struct se_node_acl *ua_nacl;
609 struct list_head ua_dev_list; 609 struct list_head ua_dev_list;
610 struct list_head ua_nacl_list; 610 struct list_head ua_nacl_list;
611} ____cacheline_aligned; 611};
612 612
613struct se_node_acl { 613struct se_node_acl {
614 char initiatorname[TRANSPORT_IQN_LEN]; 614 char initiatorname[TRANSPORT_IQN_LEN];
@@ -635,7 +635,7 @@ struct se_node_acl {
635 struct config_group *acl_default_groups[5]; 635 struct config_group *acl_default_groups[5];
636 struct list_head acl_list; 636 struct list_head acl_list;
637 struct list_head acl_sess_list; 637 struct list_head acl_sess_list;
638} ____cacheline_aligned; 638};
639 639
640struct se_session { 640struct se_session {
641 unsigned sess_tearing_down:1; 641 unsigned sess_tearing_down:1;
@@ -648,7 +648,7 @@ struct se_session {
648 struct list_head sess_cmd_list; 648 struct list_head sess_cmd_list;
649 struct list_head sess_wait_list; 649 struct list_head sess_wait_list;
650 spinlock_t sess_cmd_lock; 650 spinlock_t sess_cmd_lock;
651} ____cacheline_aligned; 651};
652 652
653struct se_device; 653struct se_device;
654struct se_transform_info; 654struct se_transform_info;
@@ -668,7 +668,7 @@ struct se_lun_acl {
668 struct list_head lacl_list; 668 struct list_head lacl_list;
669 struct config_group se_lun_group; 669 struct config_group se_lun_group;
670 struct se_ml_stat_grps ml_stat_grps; 670 struct se_ml_stat_grps ml_stat_grps;
671} ____cacheline_aligned; 671};
672 672
673struct se_dev_entry { 673struct se_dev_entry {
674 bool def_pr_registered; 674 bool def_pr_registered;
@@ -693,7 +693,7 @@ struct se_dev_entry {
693 struct se_lun *se_lun; 693 struct se_lun *se_lun;
694 struct list_head alua_port_list; 694 struct list_head alua_port_list;
695 struct list_head ua_list; 695 struct list_head ua_list;
696} ____cacheline_aligned; 696};
697 697
698struct se_dev_limits { 698struct se_dev_limits {
699 /* Max supported HW queue depth */ 699 /* Max supported HW queue depth */
@@ -702,7 +702,7 @@ struct se_dev_limits {
702 u32 queue_depth; 702 u32 queue_depth;
703 /* From include/linux/blkdev.h for the other HW/SW limits. */ 703 /* From include/linux/blkdev.h for the other HW/SW limits. */
704 struct queue_limits limits; 704 struct queue_limits limits;
705} ____cacheline_aligned; 705};
706 706
707struct se_dev_attrib { 707struct se_dev_attrib {
708 int emulate_dpo; 708 int emulate_dpo;
@@ -731,7 +731,7 @@ struct se_dev_attrib {
731 u32 unmap_granularity_alignment; 731 u32 unmap_granularity_alignment;
732 struct se_subsystem_dev *da_sub_dev; 732 struct se_subsystem_dev *da_sub_dev;
733 struct config_group da_group; 733 struct config_group da_group;
734} ____cacheline_aligned; 734};
735 735
736struct se_dev_stat_grps { 736struct se_dev_stat_grps {
737 struct config_group stat_group; 737 struct config_group stat_group;
@@ -764,7 +764,7 @@ struct se_subsystem_dev {
764 struct config_group se_dev_pr_group; 764 struct config_group se_dev_pr_group;
765 /* For target_core_stat.c groups */ 765 /* For target_core_stat.c groups */
766 struct se_dev_stat_grps dev_stat_grps; 766 struct se_dev_stat_grps dev_stat_grps;
767} ____cacheline_aligned; 767};
768 768
769struct se_device { 769struct se_device {
770 /* RELATIVE TARGET PORT IDENTIFER Counter */ 770 /* RELATIVE TARGET PORT IDENTIFER Counter */
@@ -830,7 +830,7 @@ struct se_device {
830 struct se_subsystem_api *transport; 830 struct se_subsystem_api *transport;
831 /* Linked list for struct se_hba struct se_device list */ 831 /* Linked list for struct se_hba struct se_device list */
832 struct list_head dev_list; 832 struct list_head dev_list;
833} ____cacheline_aligned; 833};
834 834
835struct se_hba { 835struct se_hba {
836 u16 hba_tpgt; 836 u16 hba_tpgt;
@@ -849,7 +849,7 @@ struct se_hba {
849 struct config_group hba_group; 849 struct config_group hba_group;
850 struct mutex hba_access_mutex; 850 struct mutex hba_access_mutex;
851 struct se_subsystem_api *transport; 851 struct se_subsystem_api *transport;
852} ____cacheline_aligned; 852};
853 853
854struct se_port_stat_grps { 854struct se_port_stat_grps {
855 struct config_group stat_group; 855 struct config_group stat_group;
@@ -875,13 +875,13 @@ struct se_lun {
875 struct se_port *lun_sep; 875 struct se_port *lun_sep;
876 struct config_group lun_group; 876 struct config_group lun_group;
877 struct se_port_stat_grps port_stat_grps; 877 struct se_port_stat_grps port_stat_grps;
878} ____cacheline_aligned; 878};
879 879
880struct scsi_port_stats { 880struct scsi_port_stats {
881 u64 cmd_pdus; 881 u64 cmd_pdus;
882 u64 tx_data_octets; 882 u64 tx_data_octets;
883 u64 rx_data_octets; 883 u64 rx_data_octets;
884} ____cacheline_aligned; 884};
885 885
886struct se_port { 886struct se_port {
887 /* RELATIVE TARGET PORT IDENTIFER */ 887 /* RELATIVE TARGET PORT IDENTIFER */
@@ -901,12 +901,12 @@ struct se_port {
901 struct se_portal_group *sep_tpg; 901 struct se_portal_group *sep_tpg;
902 struct list_head sep_alua_list; 902 struct list_head sep_alua_list;
903 struct list_head sep_list; 903 struct list_head sep_list;
904} ____cacheline_aligned; 904};
905 905
906struct se_tpg_np { 906struct se_tpg_np {
907 struct se_portal_group *tpg_np_parent; 907 struct se_portal_group *tpg_np_parent;
908 struct config_group tpg_np_group; 908 struct config_group tpg_np_group;
909} ____cacheline_aligned; 909};
910 910
911struct se_portal_group { 911struct se_portal_group {
912 /* Type of target portal group, see transport_tpg_type_table */ 912 /* Type of target portal group, see transport_tpg_type_table */
@@ -939,13 +939,13 @@ struct se_portal_group {
939 struct config_group tpg_acl_group; 939 struct config_group tpg_acl_group;
940 struct config_group tpg_attrib_group; 940 struct config_group tpg_attrib_group;
941 struct config_group tpg_param_group; 941 struct config_group tpg_param_group;
942} ____cacheline_aligned; 942};
943 943
944struct se_wwn { 944struct se_wwn {
945 struct target_fabric_configfs *wwn_tf; 945 struct target_fabric_configfs *wwn_tf;
946 struct config_group wwn_group; 946 struct config_group wwn_group;
947 struct config_group *wwn_default_groups[2]; 947 struct config_group *wwn_default_groups[2];
948 struct config_group fabric_stat_group; 948 struct config_group fabric_stat_group;
949} ____cacheline_aligned; 949};
950 950
951#endif /* TARGET_CORE_BASE_H */ 951#endif /* TARGET_CORE_BASE_H */