Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-10 Thread Dev Jain
On 8/11/24 00:22, David Hildenbrand wrote: On 10.08.24 20:42, Dev Jain wrote: On 8/9/24 19:17, David Hildenbrand wrote: On 09.08.24 12:31, Dev Jain wrote: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phas

Re: [PATCH net-next v18 07/14] memory-provider: dmabuf devmem memory provider

2024-08-10 Thread Mina Almasry
On Fri, Aug 9, 2024 at 11:52 PM Jakub Kicinski wrote: > > On Fri, 9 Aug 2024 16:45:50 +0100 Pavel Begunkov wrote: > > > I think this is good, and it doesn't seem hacky to me, because we can > > > check the page_pools of the netdev while we hold rtnl, so we can be > > > sure nothing is messing with

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-10 Thread Zi Yan
On 9 Aug 2024, at 9:47, David Hildenbrand wrote: > On 09.08.24 12:31, Dev Jain wrote: >> As already being done in __migrate_folio(), wherein we backoff if the >> folio refcount is wrong, make this check during the unmapping phase, upon >> the failure of which, the original state of the PTEs will b

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-10 Thread David Hildenbrand
On 10.08.24 20:42, Dev Jain wrote: On 8/9/24 19:17, David Hildenbrand wrote: On 09.08.24 12:31, Dev Jain wrote: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the original sta

Re: [PATCH 1/2] mm: Retry migration earlier upon refcount mismatch

2024-08-10 Thread Dev Jain
On 8/9/24 19:17, David Hildenbrand wrote: On 09.08.24 12:31, Dev Jain wrote: As already being done in __migrate_folio(), wherein we backoff if the folio refcount is wrong, make this check during the unmapping phase, upon the failure of which, the original state of the PTEs will be restored a

Re: [PATCH v5 1/2] selftests: net: Create veth pair for testing in networkless kernel

2024-08-10 Thread Abhinav Jain
On Fri, 9 Aug 2024 21:19:11 -0700, Jakub Kicinski wrote: > > On Thu, 8 Aug 2024 09:23:09 -0700, Jakub Kicinski wrote: > > > A number of checks now return SKIP because veth doesn't support all > > > ethtool APIs. > > > > > > In netdev selftests we try to make sure SKIP is only used when test > > >

Re: [PATCH v2 00/15] tools/nolibc: improve LLVM/clang support

2024-08-10 Thread Willy Tarreau
On Wed, Aug 07, 2024 at 04:09:41PM -0600, Shuah Khan wrote: > On 8/7/24 15:51, Thomas Weißschuh wrote: > > The current support for LLVM and clang in nolibc and its testsuite is > > very limited. > > > > * Various architectures plain do not compile > > * The user *has* to specify "-Os" otherwise th

Re: [PATCH v2 14/15] selftests/nolibc: use correct clang target for s390/powerz

2024-08-10 Thread Willy Tarreau
On Wed, Aug 07, 2024 at 11:51:50PM +0200, Thomas Weißschuh wrote: > The target names between GCC and clang differ for s390. > While GCC uses "s390", clang uses "powerz". (...) > +# GCC uses "s390", clang "systemz" > +CLANG_CROSS_FLAGS := $(subst > --target=s390-linux,--target=systemz-linux,$(CLANG

[PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-08-10 Thread Abhinav Jain
Add return value checks for read & write calls in test_listmount_ns function. This patch resolves below compilation warnings: ``` statmount_test_ns.c: In function ‘test_listmount_ns’: statmount_test_ns.c:322:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result

[PATCH net] selftest: af_unix: Fix kselftest compilation warnings

2024-08-10 Thread Abhinav Jain
Add proper type cast (char *) to the buffer being passed to TH_LOG macro in __recvpair function. This change fixes the below warnings during test compilation: ``` In file included from msg_oob.c:14: msg_oob.c: In function ‘__recvpair’: ../../kselftest_harness.h:106:40: warning: format ‘%s’ expec

Re: [PATCH 2/2] selftests: rust: config: disable GCC_PLUGINS

2024-08-10 Thread Miguel Ojeda
On Fri, Aug 2, 2024 at 2:45 PM Anders Roxell wrote: > > CONFIG_RUST depends on !CONFIG_GCC_PLUGINS. Disable CONFIG_GCC_PLUGINS > in rust/config file to make sure it doesn't get enabled. > > Signed-off-by: Anders Roxell Acked-by: Miguel Ojeda When https://lore.kernel.org/rust-for-linux/2024073

Re: [PATCH 1/2] selftests: rust: config: add trailing newline

2024-08-10 Thread Miguel Ojeda
On Fri, Aug 2, 2024 at 2:45 PM Anders Roxell wrote: > > If adding multiple config files to the merge_config.sh script and > rust/config is the fist one, then the last config fragment in this file > and the first config fragment in the second file wont be set, since > there isn't a newline in this