From: Xiubo Li <xiubli@redhat.com>
To: Chen Yufan <chenyufan@vivo.com>,
Ilya Dryomov <idryomov@gmail.com>,
ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: opensource.kernel@vivo.com
Subject: Re: [PATCH v2] ceph: Convert to use jiffies macro
Date: Fri, 23 Aug 2024 09:43:46 +0800 [thread overview]
Message-ID: <1f8da693-4996-4a3a-9a50-4f757402d76a@redhat.com> (raw)
In-Reply-To: <20240822095541.121094-1-chenyufan@vivo.com>
On 8/22/24 17:55, Chen Yufan wrote:
> Use time_after_eq macro instead of using
> jiffies directly to handle wraparound.
> The modifications made compared to the previous version are as follows:
> 1. Remove extra '+' in the header.
>
> Signed-off-by: Chen Yufan <chenyufan@vivo.com>
> ---
> fs/ceph/caps.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
> index 808c9c048..6a55825c3 100644
> --- a/fs/ceph/caps.c
> +++ b/fs/ceph/caps.c
> @@ -17,6 +17,7 @@
> #include "crypto.h"
> #include <linux/ceph/decode.h>
> #include <linux/ceph/messenger.h>
> +#include <linux/jiffies.h>
>
> /*
> * Capability management
> @@ -4659,7 +4660,7 @@ unsigned long ceph_check_delayed_caps(struct ceph_mds_client *mdsc)
> * slowness doesn't block mdsc delayed work,
> * preventing send_renew_caps() from running.
> */
> - if (jiffies - loop_start >= 5 * HZ)
> + if (time_after_eq(jiffies, loop_start + 5 * HZ))
> break;
> }
> spin_unlock(&mdsc->cap_delay_lock);
Hi Yufan,
Thanks for your patch and this LGTM.
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Will apply to the 'testing' branch with an adjustment of the header
files order.
Thanks
- Xiubo
prev parent reply other threads:[~2024-08-23 1:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 9:55 Chen Yufan
2024-08-23 1:43 ` Xiubo Li [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f8da693-4996-4a3a-9a50-4f757402d76a@redhat.com \
--to=xiubli@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=chenyufan@vivo.com \
--cc=idryomov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=opensource.kernel@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®