[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <64fb3f55b9392_1e8e7829433@iweiny-mobl.notmuch>
Date: Fri, 8 Sep 2023 08:35:49 -0700
From: Ira Weiny <ira.weiny@...el.com>
To: Dave Jiang <dave.jiang@...el.com>, Ira Weiny <ira.weiny@...el.com>,
"Dan Williams" <dan.j.williams@...el.com>
CC: Navneet Singh <navneet.singh@...el.com>,
Fan Ni <fan.ni@...sung.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Davidlohr Bueso <dave@...olabs.net>,
Alison Schofield <alison.schofield@...el.com>,
"Vishal Verma" <vishal.l.verma@...el.com>,
<linux-cxl@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RFC v2 10/18] cxl/mem: Handle DCD add and release
capacity events.
Dave Jiang wrote:
>
>
> On 8/28/23 22:21, Ira Weiny wrote:
[snip]
> > +
> > +/* Returns 0 if the event was handled successfully. */
> Is this comment necessary?
Not really, deleted.
>
> > +static int cxl_handle_dcd_event_records(struct cxl_memdev_state *mds,
> > + struct cxl_event_record_raw *rec)
> > +{
> > + struct dcd_event_dyn_cap *record = (struct dcd_event_dyn_cap *)rec;
> > + uuid_t *id = &rec->hdr.id;
> > + int rc;
> > +
> > + if (!uuid_equal(id, &dc_event_uuid))
> > + return -EINVAL;
> > +
> > + switch (record->data.event_type) {
> > + case DCD_ADD_CAPACITY:
> > + rc = cxl_handle_dcd_add_event(mds, &record->data.extent);
>
> Just return?
Fixed from Jonathans comments
> > + break;
> > + case DCD_RELEASE_CAPACITY:
> > + case DCD_FORCED_CAPACITY_RELEASE:
>
> Extra 2 spaces of indentation?
This was a checkpatch issues. Fixed.
>
> > + rc = cxl_handle_dcd_release_event(mds, &record->data.extent);
>
> Same here about return.
Fixed from Jonathans comments
Thanks for the review!
Ira
Powered by blists - more mailing lists