Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-21 Thread Dan Williams
On Wed, Jan 13, 2021 at 1:56 AM Greg KH wrote: [..] > > That's not my concern though. The open race that cdev_del() does not > > address is ioctl() called after device-unbind. The open fd is never > > revoked and can live past device_unregister() in which case the ioctl > > needs to revalidate

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-13 Thread Greg KH
On Tue, Jan 12, 2021 at 01:03:08PM -0800, Dan Williams wrote: > On Sun, Jan 10, 2021 at 7:06 AM Greg KH wrote: > > > > On Sat, Jan 09, 2021 at 01:49:42PM -0800, Dan Williams wrote: > > > On Sat, Jan 9, 2021 at 12:34 AM Greg KH > > > wrote: > > > > > > > > On Sat, Jan 09, 2021 at 07:49:24AM

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-12 Thread Dan Williams
On Sun, Jan 10, 2021 at 7:06 AM Greg KH wrote: > > On Sat, Jan 09, 2021 at 01:49:42PM -0800, Dan Williams wrote: > > On Sat, Jan 9, 2021 at 12:34 AM Greg KH wrote: > > > > > > On Sat, Jan 09, 2021 at 07:49:24AM +, Chen, Mike Ximing wrote: > > > > > > +static int

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-10 Thread Greg KH
On Sat, Jan 09, 2021 at 01:49:42PM -0800, Dan Williams wrote: > On Sat, Jan 9, 2021 at 12:34 AM Greg KH wrote: > > > > On Sat, Jan 09, 2021 at 07:49:24AM +, Chen, Mike Ximing wrote: > > > > > +static int dlb_ioctl_arg_size[NUM_DLB_CMD] = { > > > > > + sizeof(struct

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-09 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Saturday, January 9, 2021 3:34 AM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com > Subject: Re: [PATCH v8 04/20] dlb: add device

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-09 Thread Dan Williams
On Sat, Jan 9, 2021 at 12:34 AM Greg KH wrote: > > On Sat, Jan 09, 2021 at 07:49:24AM +, Chen, Mike Ximing wrote: > > > > +static int dlb_ioctl_arg_size[NUM_DLB_CMD] = { > > > > + sizeof(struct dlb_get_device_version_args), > > > > + sizeof(struct dlb_create_sched_domain_args), > > > > +

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-09 Thread Greg KH
On Sat, Jan 09, 2021 at 07:49:24AM +, Chen, Mike Ximing wrote: > > > +static int dlb_ioctl_arg_size[NUM_DLB_CMD] = { > > > + sizeof(struct dlb_get_device_version_args), > > > + sizeof(struct dlb_create_sched_domain_args), > > > + sizeof(struct dlb_get_num_resources_args) > > > > That list. >

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:42 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:51 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:41 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-07 Thread Greg KH
On Mon, Jan 04, 2021 at 08:58:23PM -0600, Mike Ximing Chen wrote: > Introduce the dlb device ioctl layer and the first three ioctls: query > device version, query available resources, and create a scheduling domain. > Also introduce the user-space interface file dlb_user.h. > > The device version

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-07 Thread Greg KH
On Mon, Jan 04, 2021 at 08:58:23PM -0600, Mike Ximing Chen wrote: > Introduce the dlb device ioctl layer and the first three ioctls: query > device version, query available resources, and create a scheduling domain. > Also introduce the user-space interface file dlb_user.h. > > The device version

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-07 Thread Greg KH
On Mon, Jan 04, 2021 at 08:58:23PM -0600, Mike Ximing Chen wrote: > Introduce the dlb device ioctl layer and the first three ioctls: query > device version, query available resources, and create a scheduling domain. > Also introduce the user-space interface file dlb_user.h. > > The device version