NAS-139527 / 25.10.2 / SCST suspend failure on ALUA failover (by bmeagherix) (#18139)
Because of a recent change wrt `recovery_tmo` on the internal HA
targets, inflight IOs thru the STANDBY can interfere with SCST's ability
to be suspended on the STANDBY just as it is being promoted to ACTIVE.
Explicitly logging out these targets will prevent the issue. This is
performed by `dlm.reset_active` to minimize overhead.
Other overhead is also eliminated:
- no longer clear ACTIVE node `cluster_mode`
- decouple ACTIVE reset from `activate_extemts`. (Couple
`standby_after_start` instead.)
Also improve `test__alua_config` to use sync always for the dataset
holding the file underlying a target (and created shortly before a
reboot).
----
[10 lines not shown]
[AArch64][llvm] Remove `+xs` gating for `tlbip *nxs` instructions
A recent spec update has removed FEAT_XS gating for `tlbip *nxs`
instructions. It remains gated on FEAT_XS for `tlbi *nxs` instructions.
NAS-139527 / 26.0.0-BETA.1 / SCST suspend failure on ALUA failover (#18123)
Because of a recent change wrt recovery_tmo on the internal HA
targets, inflight IOs thru the STANDBY can interfere with SCST's ability
to be suspended on the STANDBY just as it is being promoted to ACTIVE.
Explicitly logging out these targets will prevent the issue. This is
performed by dlm.reset_active to minimize overhead.
Other overhead is also eliminated:
- no longer clear ACTIVE node cluster_mode
- decouple ACTIVE reset from activate_extents. (Couple
standby_after_start instead.)
Also improve test__alua_config to use sync always for the dataset
holding the file underlying a target (and created shortly before a
reboot).
libc: Improve POSIX conformance of dirfd()
POSIX states that dirfd() should set errno to EINVAL and return -1 if
dirp does not refer to a valid directory stream. Our interpretation is
that this applies if dirp is null or the file descriptor associated
with it is negative.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D55025
native-xtools: use static LLVM libraries
Set the MK_LLVM_LINK_STATIC_LIBRARIES knob to "yes" when building the
native-xtools target. This reverts to the behaviour prior to
2e47f35be5dc.
This avoids a build failure that occurs otherwise, where compilation
fails looking for a libllvmprivate.so that was not built.
It is unclear if this addresses the issue in all instances---some
replies in the PRs indicate otherwise. Still, some report success, and
in my own testing this fixed creation of a cross-compiled poudriere
jail. Commit this while we continue to investigate...
PR: 286710, 291409
Tested by: marck, rdunkle at smallcatbrain.com
Reviewed by: emaste
MFC after: 3 days
Fixes: 2e47f35be5dc ("Convert libllvm, libclang and liblldb into private shared libraries").
[4 lines not shown]
native-xtools: use static LLVM libraries
Set the MK_LLVM_LINK_STATIC_LIBRARIES knob to "yes" when building the
native-xtools target. This reverts to the behaviour prior to
2e47f35be5dc.
This avoids a build failure that occurs otherwise, where compilation
fails looking for a libllvmprivate.so that was not built.
It is unclear if this addresses the issue in all instances---some
replies in the PRs indicate otherwise. Still, some report success, and
in my own testing this fixed creation of a cross-compiled poudriere
jail. Commit this while we continue to investigate...
PR: 286710, 291409
Tested by: marck, rdunkle at smallcatbrain.com
Reviewed by: emaste
MFC after: 3 days
Fixes: 2e47f35be5dc ("Convert libllvm, libclang and liblldb into private shared libraries").
[4 lines not shown]
[LifetimeSafety] Track STL algorithm functions that return lifetimebound iterators (#179227)
Enhanced the `shouldTrackFirstArgument` function in
`LifetimeAnnotations.cpp` to recognize standard library algorithm
functions like `find`, `find_if`, `search`, etc. that return iterators
whose lifetimes are bound to their container arguments. This allows the
lifetime checker to detect when these iterators outlive their
containers.
The implementation now:
- Checks for standard library algorithm functions that take at least two
parameters
- Identifies specific functions by name (find, find_if, find_if_not,
etc.)
- Verifies the return type is a GSL pointer type
[Offload] Only issue a warning for building `offload` on the GPU and return (#179240)
Summary:
Right now this will fail because the GPU architectures will attempt to
build all of `offload` with the GPU, which obviously won't work. In the
future we will proably have some utility library that we will route
through this, but for now just silently return. This is useful because
the documentation states to use this, but it doesn't work right now.
```
-DLLVM_ENABLE_RUNTIMES=offload;openmp
-DLLVM_RUNTIME_TARGETS=default;amdgcn-amd-amdhsa
```
This PR makes this work.