Re: [PATCH 3/3] libnvdimm/ioctl: Switch to cdev_register_queued()

2021-01-21 Thread Dan Williams
On Thu, Jan 21, 2021 at 12:16 AM Greg KH wrote: > > On Wed, Jan 20, 2021 at 11:39:08AM -0800, Dan Williams wrote: > > The ioctl implementation in libnvdimm is a case study in what can be > > cleaned up when the cdev core handles synchronizing in-flight ioctls > > with device removal. Switch to cde

Re: [PATCH 3/3] libnvdimm/ioctl: Switch to cdev_register_queued()

2021-01-21 Thread Greg KH
On Wed, Jan 20, 2021 at 11:39:08AM -0800, Dan Williams wrote: > The ioctl implementation in libnvdimm is a case study in what can be > cleaned up when the cdev core handles synchronizing in-flight ioctls > with device removal. Switch to cdev_register_queued() which allows for > the ugly context loo

[PATCH 3/3] libnvdimm/ioctl: Switch to cdev_register_queued()

2021-01-20 Thread Dan Williams
The ioctl implementation in libnvdimm is a case study in what can be cleaned up when the cdev core handles synchronizing in-flight ioctls with device removal. Switch to cdev_register_queued() which allows for the ugly context lookup and activity tracking implementation to be dropped, among other cl