* [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock
@ 2024-11-27 13:53 Alice Ryhl
2024-11-27 14:58 ` Johannes Weiner
2024-11-28 2:32 ` Chengming Zhou
0 siblings, 2 replies; 3+ messages in thread
From: Alice Ryhl @ 2024-11-27 13:53 UTC (permalink / raw)
To: Johannes Weiner, Yosry Ahmed, Nhat Pham, Chengming Zhou, Andrew Morton
Cc: linux-mm, linux-kernel, Alice Ryhl
This function has been able to return LRU_STOP since commit b49547ade38a
("mm/zswap: stop lru list shrinking when encounter warm region"). To
reduce confusion, update the comment to also list LRU_STOP as an option.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/mm/zswap.c b/mm/zswap.c
index f6316b66fb23..9718c33f8192 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -1156,7 +1156,7 @@ static enum lru_status shrink_memcg_cb(struct list_head *item, struct list_lru_o
/*
* It's safe to drop the lock here because we return either
- * LRU_REMOVED_RETRY or LRU_RETRY.
+ * LRU_REMOVED_RETRY, LRU_RETRY or LRU_STOP.
*/
spin_unlock(&l->lock);
---
base-commit: aaf20f870da056752f6386693cc0d8e25421ef35
change-id: 20241127-lru-stop-comment-09dab2427b6e
Best regards,
--
Alice Ryhl <aliceryhl@google.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock
2024-11-27 13:53 [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock Alice Ryhl
@ 2024-11-27 14:58 ` Johannes Weiner
2024-11-28 2:32 ` Chengming Zhou
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Weiner @ 2024-11-27 14:58 UTC (permalink / raw)
To: Alice Ryhl
Cc: Yosry Ahmed, Nhat Pham, Chengming Zhou, Andrew Morton, linux-mm,
linux-kernel
On Wed, Nov 27, 2024 at 01:53:29PM +0000, Alice Ryhl wrote:
> This function has been able to return LRU_STOP since commit b49547ade38a
> ("mm/zswap: stop lru list shrinking when encounter warm region"). To
> reduce confusion, update the comment to also list LRU_STOP as an option.
>
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock
2024-11-27 13:53 [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock Alice Ryhl
2024-11-27 14:58 ` Johannes Weiner
@ 2024-11-28 2:32 ` Chengming Zhou
1 sibling, 0 replies; 3+ messages in thread
From: Chengming Zhou @ 2024-11-28 2:32 UTC (permalink / raw)
To: Alice Ryhl, Johannes Weiner, Yosry Ahmed, Nhat Pham, Andrew Morton
Cc: linux-mm, linux-kernel
On 2024/11/27 21:53, Alice Ryhl wrote:
> This function has been able to return LRU_STOP since commit b49547ade38a
> ("mm/zswap: stop lru list shrinking when encounter warm region"). To
> reduce confusion, update the comment to also list LRU_STOP as an option.
>
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Thanks!
> ---
> mm/zswap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/zswap.c b/mm/zswap.c
> index f6316b66fb23..9718c33f8192 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -1156,7 +1156,7 @@ static enum lru_status shrink_memcg_cb(struct list_head *item, struct list_lru_o
>
> /*
> * It's safe to drop the lock here because we return either
> - * LRU_REMOVED_RETRY or LRU_RETRY.
> + * LRU_REMOVED_RETRY, LRU_RETRY or LRU_STOP.
> */
> spin_unlock(&l->lock);
>
>
> ---
> base-commit: aaf20f870da056752f6386693cc0d8e25421ef35
> change-id: 20241127-lru-stop-comment-09dab2427b6e
>
> Best regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-28 2:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-27 13:53 [PATCH] mm/zswap: add LRU_STOP to comment about dropping the lru lock Alice Ryhl
2024-11-27 14:58 ` Johannes Weiner
2024-11-28 2:32 ` Chengming Zhou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox