On Wed, 2018-12-19 at 16:28 +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Changelog v0->v1: > - Address Jason's comment to reuse class name during char device creation time > - Changed subject from RDMA/umad to IB/umad to be consistent with rest patches > - Removed extra space after comment in patch-2 > > ---------------------------------------------- > From Parav, > > Refactor ib_umad class and device registration code for following items. > 1. To make use of more static definitions and utilize class_groups and > dev_groups to register class and device specific attributes This is > similar to commits b53b1c08a23e and c5c4d92e70f3 for ib_uverbs module. > 2. Use kref instead of kobject as its lighter for ib_umad_device > reference counting. > 3. Avoid accessing undefined dev->name during ioctl() operation for > device > under destruction. > 4. Refactor for minor cosmetics for alignments. > 5. Return more appropriate error code instead of -1. > > Thanks > > Parav Pandit (6): > IB/umad: Use class name while creating char device regions > IB/umad: Avoid destroying device while it is accessed > IB/umad: Simplify and avoid dynamic allocation of class > IB/umad: Refactor code to use cdev_device_add() > IB/umad: Use class_groups and let core create class file > IB/umad: Start using dev_groups of class > > drivers/infiniband/core/user_mad.c | 279 +++++++++++++++-------------- > 1 file changed, 141 insertions(+), 138 deletions(-) > > -- > 2.19.1 > V1 series looks good, thanks, applied. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Attachment:
signature.asc
Description: This is a digitally signed message part