Messages in this thread | | | Date | Thu, 7 Dec 2023 13:42:11 +0100 | From | Daniel Wagner <> | Subject | Re: [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
| |