€•å%Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ(/translations/zh_CN/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/zh_TW/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/pt_BR/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/sp_SP/scheduler/membarrier”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒB/var/lib/git/docbuild/linux/Documentation/scheduler/membarrier.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒmembarrier() System Call”h]”hŒmembarrier() System Call”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒEMEMBARRIER_CMD_{PRIVATE,GLOBAL}_EXPEDITED - Architecture requirements”h]”hŒEMEMBARRIER_CMD_{PRIVATE,GLOBAL}_EXPEDITED - Architecture requirements”…”�”}”(hhàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÝh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ(Memory barriers before updating rq->curr”h]”hŒ(Memory barriers before updating rq->curr”…”�”}”(hhñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhîh²hh³hÇh´K ubhŒ paragraph”“”)�”}”(hX¥The commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after coming from user-space, before updating rq->curr. This barrier is implied by the sequence rq_lock(); smp_mb__after_spinlock() in __schedule(). The barrier matches a full barrier in the proximity of the membarrier system call exit, cf. membarrier_{private,global}_expedited().”h]”hX¥The commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after coming from user-space, before updating rq->curr. This barrier is implied by the sequence rq_lock(); smp_mb__after_spinlock() in __schedule(). The barrier matches a full barrier in the proximity of the membarrier system call exit, cf. membarrier_{private,global}_expedited().”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´K hhîh²hubeh}”(h]”Œ'memory-barriers-before-updating-rq-curr”ah ]”h"]”Œ(memory barriers before updating rq->curr”ah$]”h&]”uh1hÈhhÝh²hh³hÇh´K ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ'Memory barriers after updating rq->curr”h]”hŒ'Memory barriers after updating rq->curr”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´Kubj)�”}”(hXThe commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after updating rq->curr, before returning to user-space. The schemes providing this barrier on the various architectures are as follows.”h]”hXThe commands MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_GLOBAL_EXPEDITED require each architecture to have a full memory barrier after updating rq->curr, before returning to user-space. The schemes providing this barrier on the various architectures are as follows.”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´Khjh²hubhŒ block_quote”“”)�”}”(hX - alpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch(). - arm64 relies on the full barrier implied by switch_to(). - powerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm(). ”h]”hŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒjalpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch(). ”h]”j)�”}”(hŒialpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch().”h]”hŒialpha, arc, arm, hexagon, mips rely on the full barrier implied by spin_unlock() in finish_lock_switch().”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´KhjCubah}”(h]”h ]”h"]”h$]”h&]”uh1jAhj>ubjB)�”}”(hŒ9arm64 relies on the full barrier implied by switch_to(). ”h]”j)�”}”(hŒ8arm64 relies on the full barrier implied by switch_to().”h]”hŒ8arm64 relies on the full barrier implied by switch_to().”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´Khj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jAhj>ubjB)�”}”(hŒípowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm(). ”h]”j)�”}”(hŒìpowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm().”h]”hŒìpowerpc, riscv, s390, sparc, x86 rely on the full barrier implied by switch_mm(), if mm is not NULL; they rely on the full barrier implied by mmdrop(), otherwise. On powerpc and riscv, switch_mm() relies on membarrier_arch_switch_mm().”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´K!hjsubah}”(h]”h ]”h"]”h$]”h&]”uh1jAhj>ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j<h³hÇh´Khj8ubah}”(h]”h ]”h"]”h$]”h&]”uh1j6h³hÇh´Khjh²hubj)�”}”(hŒ…The barrier matches a full barrier in the proximity of the membarrier system call entry, cf. membarrier_{private,global}_expedited().”h]”hŒ…The barrier matches a full barrier in the proximity of the membarrier system call entry, cf. membarrier_{private,global}_expedited().”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÿh³hÇh´K&hjh²hubeh}”(h]”Œ&memory-barriers-after-updating-rq-curr”ah ]”h"]”Œ'memory barriers after updating rq->curr”ah$]”h&]”uh1hÈhhÝh²hh³hÇh´Kubeh}”(h]”ŒAmembarrier-cmd-private-global-expedited-architecture-requirements”ah ]”h"]”ŒEmembarrier_cmd_{private,global}_expedited - architecture requirements”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kubeh}”(h]”Œmembarrier-system-call”ah ]”h"]”Œmembarrier() system call”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jâŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j¼j¹j´j±jjj¬j©uŒ nametypes”}”(j¼‰j´‰j‰j¬‰uh}”(j¹hÊj±hÝjhîj©juŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.