Thread (1 message) 1 message, 1 author, 2017-02-28

Re: [PATCH v2 01/16] chardev: add helper function to register char devs with a struct device

From: Dan Williams <hidden>
Date: 2017-02-28 03:36:09
Also in: linux-fsdevel, linux-gpio, linux-input, linux-rdma, linux-rtc, linux-scsi

Possibly related (same subject, not in this thread)

On Mon, Feb 27, 2017 at 7:27 PM, Logan Gunthorpe [off-list ref] wrote:

On 27/02/17 09:56 AM, Jason Gunthorpe wrote:
quoted
Yes please, that is way too subtle. Suggest:

NOTE: Callers must assume that userspace was able to open the cdev and
can call cdev fops callbacks at any time, even if this function fails.

I would also add a note to cdev_device_del:

NOTE: This guarantees that associated sysfs callbacks are not running
or runnable, however any open cdevs will remain and their fops remain
callable even after this returns.

Since I have seen a lot of confusion on that point as well..
Sure, I'll add that verbiage to a v3 sometime after rc1.
It would also be great to patch1 into a stable non-rebasing git tree
so it can be used as a baseline for other 4.12 targeted development.
The device-dax patches in particular collide with some pending
development.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help