lkml.org 
[lkml]   [2023]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 3/4] nvme: add csi, ms and nuse to sysfs
On Thu, Dec 07, 2023 at 01:36:23PM +0100, Daniel Wagner wrote:
> +static int ns_head_update_nuse(struct nvme_ns_head *head)
> +{
> + struct nvme_id_ns *id;
> + struct nvme_ns *ns;
> + int srcu_idx, ret = -EWOULDBLOCK;
> +
> + /* Avoid issuing commands too often by rate limiting the update */
> + if (!__ratelimit(&head->rs_nuse))
> + return 0;
> +
> + pr_info("%s: head %p\n", __func__, head);

Forgot to remove this debug print.

> +static int ns_update_nuse(struct nvme_ns *ns)
> +{
> + struct nvme_id_ns *id;
> + int ret;
> +
> + /* Avoid issuing commands too often by rate limiting the update. */
> + if (!__ratelimit(&ns->head->rs_nuse))
> + return 0;
> +
> + pr_info("%s: ns %p\n", __func__, ns);

ditto

\
 
 \ /
  Last update: 2023-12-07 13:43    [W:0.130 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site