a configfs update for 4.5, and the configfs tree question
Subsystems (3)
Hi all,
I really want the configfs change in this series to go into 4.5. Originally both Pantelis and I had changes ontop that would require it in a stable non-rebased branch, but one or both of those might not make the cut.
As this has been a problem with a increased configfs actitivly lately I'd like to volunteer to co-maintain configfs and keep a git tree that can be used as stable baseline for all involved parties instead of the patch-only -mm tree or occasional merge through the SCSI target tree.
I've started out with just this patch in my tree:
git://git.infradead.org/users/hch/vfs.git configfs-for-4.5
or gitweb:
http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/configfs-for-4.5
I know Krzysztof also had pending changes and I'd be happy to collect them as well.
PATCH 1/1 configfs: implement binary attributes
From: Pantelis Antoniou <[email protected]>
ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit the configfs usage model.
Problems that configfs binary attributes fix are everything that requires a binary blob as part of the configuration of a resource, such as bitstream loading for FPGAs, DTBs for dynamically created devices etc.
Look at Documentation/filesystems/configfs/configfs.txt for internals and howto use them.
This patch is against linux-next as of today that contains Christoph's configfs rework.
--- Documentation/filesystems/configfs/configfs.txt | 57 +++++- fs/configfs/configfs_internal.h | 14 +- fs/configfs/dir.c | 18 +- fs/configfs/file.c | 255 +++++++++++++++++++++++- fs/configfs/inode.c | 2 +- include/linux/configfs.h | 50 +++++ 6 files changed, 374 insertions(+), 22 deletions(-)
Documentation/filesystems/configfs/configfs.txt +48 -9
@@ -51,15 +51,27 @@ configfs tree is always there, whether mounted on /config or not. An item is created via mkdir(2). The item's attributes will also appear at this time. readdir(3) can determine what the attributes are, read(2) can query their default values, and write(2) can store new -values. Like sysfs, attributes should be ASCII text files, preferably -with only one value per file. The same efficiency caveats from sysfs -apply. Don't mix more than one attribute in one attribute file. - -Like sysfs, configfs expects write(2) to store the entire buffer at -once. When writing to configfs attributes, userspace processes should -first read the entire file, modify the portions they wish to change, and -then write the entire buffer back. Attribute files have a maximum size -of one page (PAGE_SIZE, 4096 on i386). +values. Don't mix more than one attribute in one attribute file. + +There are two types of configfs attributes: + +* Normal attributes, which similar to sysfs attributes, are small ASCII text +files, with a maximum size of one page (PAGE_SIZE, 4096 on i386). Preferably +only one value per file should be used, and the same caveats from sysfs apply. +Configfs expects write(2) to store the entire buffer at once. When writing to +normal configfs attributes, userspace processes should first read the entire +file, modify the portions they wish to change, and then write the entire +buffer back. + +* Binary attributes, which are somewhat similar to sysfs binary attributes, +but with a few slight changes to semantics. The PAGE_SIZE limitation does not +apply, but the whole binary item must fit in single kernel vmalloc'ed buffer. +The write(2) calls from user space are buffered, and the attributes' +write_bin_attribute method will be invoked on the final close, therefore it is +imperative for user-space to check the return code of close(2) in order to +verify that the operation finished successfully. +To avoid a malicious user OOMing the kernel, there's a per-binary attribute +maximum buffer value. When an item needs to be destroyed, remove it with rmdir(2). An item cannot be destroyed if any other item has a link to it (via
@@ -171,6 +183,7 @@ among other things. For that, it needs a type. struct configfs_item_operations *ct_item_ops; struct configfs_group_operations *ct_group_ops; struct configfs_attribute **ct_attrs; + struct configfs_bin_attribute **ct_bin_attrs; }; The most basic function of a config_item_type is to define what
@@ -201,6 +214,32 @@ be called whenever userspace asks for a read(2) on the attribute. If an attribute is writable and provides a ->store method, that method will be be called whenever userspace asks for a write(2) on the attribute. +[struct configfs_bin_attribute] + + struct configfs_attribute { + struct configfs_attribute cb_attr; + void *cb_private; + size_t cb_max_size; + }; + +The binary attribute is used when the one needs to use binary blob to +appear as the contents of a file in the item's configfs directory. +To do so add the binary attribute to the NULL-terminated array +config_item_type->ct_bin_attrs, and the item appears in configfs, the +attribute file will appear with the configfs_bin_attribute->cb_attr.ca_name +filename. configfs_bin_attribute->cb_attr.ca_mode specifies the file +permissions. +The cb_private member is provided for use by the driver, while the +cb_max_size member specifies the maximum amount of vmalloc buffer +to be used. + +If binary attribute is readable and the config_item provides a +ct_item_ops->read_bin_attribute() method, that method will be called +whenever userspace asks for a read(2) on the attribute. The converse +will happen for write(2). The reads/writes are bufferred so only a +single read/write will occur; the attributes' need not concern itself +with it. + [struct config_group] A config_item cannot live in a vacuum. The only way one can be created
fs/configfs/configfs_internal.h +12 -2
@@ -53,13 +53,14 @@ struct configfs_dirent {#define CONFIGFS_ROOT 0x0001#define CONFIGFS_DIR 0x0002#define CONFIGFS_ITEM_ATTR 0x0004 +#define CONFIGFS_ITEM_BIN_ATTR 0x0008#define CONFIGFS_ITEM_LINK 0x0020#define CONFIGFS_USET_DIR 0x0040#define CONFIGFS_USET_DEFAULT 0x0080#define CONFIGFS_USET_DROPPING 0x0100#define CONFIGFS_USET_IN_MKDIR 0x0200#define CONFIGFS_USET_CREATING 0x0400 -#define CONFIGFS_NOT_PINNED (CONFIGFS_ITEM_ATTR) +#define CONFIGFS_NOT_PINNED (CONFIGFS_ITEM_ATTR | CONFIGFS_ITEM_BIN_ATTR)extern struct mutex configfs_symlink_mutex;extern spinlock_t configfs_dirent_lock;
@@ -72,6 +73,8 @@ extern struct inode * configfs_new_inode(umode_t mode, struct configfs_dirent *,extern int configfs_create (struct dentry *,umode_t mode,void (*init)(struct inode *));extern int configfs_create_file (struct config_item *,const struct configfs_attribute *); +extern int configfs_create_bin_file (struct config_item *, +const struct configfs_bin_attribute *);extern int configfs_make_dirent (struct configfs_dirent *,struct dentry *,void *,umode_t ,int );extern int configfs_dirent_is_ready (struct configfs_dirent *);
@@ -88,7 +91,7 @@ extern void configfs_release_fs(void);extern struct rw_semaphore configfs_rename_sem;extern const struct file_operations configfs_dir_operations;extern const struct file_operations configfs_file_operations; -extern const struct file_operations bin_fops; +extern const struct file_operations configfs_bin_file_operations;extern const struct inode_operations configfs_dir_inode_operations;extern const struct inode_operations configfs_root_inode_operations;extern const struct inode_operations configfs_symlink_inode_operations;
@@ -119,6 +122,13 @@ static inline struct configfs_attribute * to_attr(struct dentry * dentry)return ((struct configfs_attribute *) sd->s_element); } +static inline struct configfs_bin_attribute *to_bin_attr (struct dentry *dentry) +{ +struct configfs_attribute *attr =to_attr (dentry); + + return container_of(attr, struct configfs_bin_attribute, cb_attr); +} +static inline struct config_item *configfs_get_config_item (struct dentry *dentry) {struct config_item * item =NULL ;
fs/configfs/dir.c +17 -1
@@ -255,6 +255,12 @@ static void configfs_init_file(struct inode * inode) inode->i_fop = &configfs_file_operations; } +static void configfs_init_bin_file (struct inode *inode) +{ + inode->i_size =0 ; + inode->i_fop = &configfs_bin_file_operations; +} +static void init_symlink (struct inode * inode) { inode->i_op = &configfs_symlink_inode_operations;
@@ -423,7 +429,9 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * denspin_unlock (&configfs_dirent_lock); error =configfs_create (dentry, (attr->ca_mode &S_IALLUGO ) |S_IFREG , - configfs_init_file); + (sd->s_type &CONFIGFS_ITEM_ATTR ) ? + configfs_init_file : + configfs_init_bin_file);if (error) {configfs_put (sd);return error;
@@ -583,6 +591,7 @@ static int populate_attrs(struct config_item *item) {struct config_item_type *t = item->ci_type;struct configfs_attribute *attr; +struct configfs_bin_attribute *bin_attr;int error =0 ;int i;
@@ -594,6 +603,13 @@ static int populate_attrs(struct config_item *item)break ; } } +if (t->ct_bin_attrs) { +for (i =0 ; (bin_attr = t->ct_bin_attrs[i]) !=NULL ; i++) { + error =configfs_create_bin_file (item, bin_attr); +if (error) +break ; + } + }if (error)detach_attrs (item);
fs/configfs/file.c +246 -9
329 lines not on this page · raw message
fs/configfs/inode.c +1 -1
@@ -218,7 +218,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd)if (sd->s_type & (CONFIGFS_DIR |CONFIGFS_ITEM_LINK ))return sd->s_dentry->d_name.name; -if (sd->s_type &CONFIGFS_ITEM_ATTR ) { +if (sd->s_type & (CONFIGFS_ITEM_ATTR |CONFIGFS_ITEM_BIN_ATTR )) { attr = sd->s_element;return attr->ca_name; }
include/linux/configfs.h +50 -0
68 lines not on this page · raw message
Signature · 1 line
1.9.1
Re: [PATCH] configfs: implement binary attributes
Quoted 11 lines · Christoph Hellwig
From: Pantelis Antoniou <[email protected]>
ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit the configfs usage model.
Problems that configfs binary attributes fix are everything that requires a binary blob as part of the configuration of a resource, such as bitstream loading for FPGAs, DTBs for dynamically created devices etc.
Overall, I really like this addition.
fs/configfs/dir.c static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * den · line 434
Quoted 8 lines
fs/configfs/dir.c +3
-1@@ -423,7 +429,9 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * denspin_unlock (&configfs_dirent_lock); error =configfs_create (dentry, (attr->ca_mode &S_IALLUGO ) |S_IFREG , - configfs_init_file); + (sd->s_type &CONFIGFS_ITEM_ATTR ) ? + configfs_init_file : + configfs_init_bin_file);
BIN_ATTRs are the more uncommon type, at least for now. I would think this code should check for special cases and fall back to ITEM_ATTR. So reverse it.
(sd->s_type & CONFIGFS_ITEM_BIN_ATTR) ?
configfs_init_bin_file :
configfs_init_file
Quoted 8 lines
fs/configfs/file.c +8
-0+static ssize_t +configfs_read_bin_file (struct file *file,char __user *buf, +size_t count,loff_t *ppos) +{ +struct configfs_buffer *buffer = file->private_data; +struct dentry *dentry = file->f_path.dentry; +struct config_item *item =to_item (dentry->d_parent); +struct configfs_bin_attribute *bin_attr =to_bin_attr (dentry);
fs/configfs/file.c out: · line 168
Quoted 10 lines
fs/configfs/file.c +10
-0+ssize_t retval =0 ; +ssize_t len =min_t (size_t, count,PAGE_SIZE ); + +mutex_lock (&buffer->mutex); + +/* we don't support switching read/write modes */ +if (buffer->write_in_progress) { + retval = -EINVAL ; + goto out; + }
These are valid arguments, it's just competing with another operation. Wouldn't something like EINPROGRESS or ETXTBSY make more sense and be more informative? The same for configfs_write_bin_file().
Joel
Signature · 7 lines
"Soap and education are not as sudden as a massacre, but they are more deadly in the long run." - Mark Twain http://www.jlbec.org/ [email protected]
Re: [PATCH] configfs: implement binary attributes
W dniu 2015-12-30 o 00:00, Joel Becker pisze:
Quoted 28 lines · Christoph Hellwig
Quoted 11 lines
From: Pantelis Antoniou <[email protected]>
ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit the configfs usage model.
Problems that configfs binary attributes fix are everything that requires a binary blob as part of the configuration of a resource, such as bitstream loading for FPGAs, DTBs for dynamically created devices etc.
Overall, I really like this addition.
fs/configfs/dir.c static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * den · line 434
Quoted 8 lines
fs/configfs/dir.c +3
-1@@ -423,7 +429,9 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * denspin_unlock (&configfs_dirent_lock); error =configfs_create (dentry, (attr->ca_mode &S_IALLUGO ) |S_IFREG , - configfs_init_file); + (sd->s_type &CONFIGFS_ITEM_ATTR ) ? + configfs_init_file : + configfs_init_bin_file);
BIN_ATTRsare the more uncommon type, at least for now. I would think this code should check for special cases and fall back toITEM_ATTR. So reverse it.
Quoted 4 lines
(sd->s_type & CONFIGFS_ITEM_BIN_ATTR) ?
configfs_init_bin_file:
configfs_init_file
I think that static inline helper can be usefull here to improve readability
Quoted 25 lines
Quoted 8 lines
fs/configfs/file.c +8
-0+static ssize_t +configfs_read_bin_file (struct file *file,char __user *buf, +size_t count,loff_t *ppos) +{ +struct configfs_buffer *buffer = file->private_data; +struct dentry *dentry = file->f_path.dentry; +struct config_item *item =to_item (dentry->d_parent); +struct configfs_bin_attribute *bin_attr =to_bin_attr (dentry);fs/configfs/file.c out: · line 168
Quoted 10 lines
fs/configfs/file.c +10
-0+ssize_t retval =0 ; +ssize_t len =min_t (size_t, count,PAGE_SIZE ); + +mutex_lock (&buffer->mutex); + +/* we don't support switching read/write modes */ +if (buffer->write_in_progress) { + retval = -EINVAL ; + goto out; + }These are valid arguments, it's just competing with another operation. Wouldn't something like EINPROGRESS or ETXTBSY make more sense and be more informative? The same for
configfs_write_bin_file().Joel
Signature · 3 lines
Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics
Re: [PATCH] configfs: implement binary attributes
In reply to Joel BeckerHi Joel,
Quoted 10 lines · Joel Becker
Quoted 7 lines · Christoph Hellwig
From: Pantelis Antoniou <[email protected]>
ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit the configfs usage model.
Quoted 7 lines
Quoted 4 lines
Problems that configfs binary attributes fix are everything that requires a binary blob as part of the configuration of a resource, such as bitstream loading for FPGAs, DTBs for dynamically created devices etc.
Overall, I really like this addition.
That’s good :)
Quoted 13 lines
fs/configfs/dir.c static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * den · line 434
Quoted 8 lines
fs/configfs/dir.c +3
-1@@ -423,7 +429,9 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * denspin_unlock (&configfs_dirent_lock); error =configfs_create (dentry, (attr->ca_mode &S_IALLUGO ) |S_IFREG , - configfs_init_file); + (sd->s_type &CONFIGFS_ITEM_ATTR ) ? + configfs_init_file : + configfs_init_bin_file);
BIN_ATTRsare the more uncommon type, at least for now. I would think this code should check for special cases and fall back toITEM_ATTR. So reverse it.
Quoted 4 lines
(sd->s_type & CONFIGFS_ITEM_BIN_ATTR) ?
configfs_init_bin_file:
configfs_init_file
OK.
Quoted 14 lines
Quoted 14 lines
fs/configfs/file.c +14
-0+static ssize_t +configfs_read_bin_file (struct file *file,char __user *buf, +size_t count,loff_t *ppos) +{ +struct configfs_buffer *buffer = file->private_data; +struct dentry *dentry = file->f_path.dentry; +struct config_item *item =to_item (dentry->d_parent); +struct configfs_bin_attribute *bin_attr =to_bin_attr (dentry); +ssize_t retval =0 ; +ssize_t len =min_t (size_t, count,PAGE_SIZE ); + +mutex_lock (&buffer->mutex); + +/* we don't support switching read/write modes */
Quoted 9 lines
fs/configfs/file.c out: · line 168
Quoted 4 lines
fs/configfs/file.c +4
-0+if (buffer->write_in_progress) { + retval = -EINVAL ; + goto out; + }These are valid arguments, it's just competing with another operation. Wouldn't something like EINPROGRESS or ETXTBSY make more sense and be more informative? The same for
configfs_write_bin_file().
Yep, will be done.
Quoted 2 lines
Joel
Regards
— Pantelis
PS. A big thanks to Christoph for keeping this going. I will shortly post a new version with the requested changes incorporated.
Quoted 9 lines
Signature · 7 lines
"Soap and education are not as sudden as a massacre, but they are more deadly in the long run." - Mark Twain http://www.jlbec.org/ [email protected]
Re: [PATCH] configfs: implement binary attributes
In reply to Christoph HellwigW dniu 2015-12-24 o 15:51, Christoph Hellwig pisze:
Quoted 22 lines
From: Pantelis Antoniou <[email protected]>
ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit the configfs usage model.
Problems that configfs binary attributes fix are everything that requires a binary blob as part of the configuration of a resource, such as bitstream loading for FPGAs, DTBs for dynamically created devices etc.
Look at
Documentation/filesystems/configfs/configfs.txtfor internals and howto use them.This patch is against linux-next as of today that contains Christoph's configfs rework.
Signed-off-by Pantelis Antoniou <[email protected]>[hch: folded a fix from Geert Uytterhoeven <[email protected]>]Signed-off-by Christoph Hellwig <[email protected]>---
(...)
fs/configfs/file.c struct configfs_buffer { · line 53
Quoted 8 lines
#include <linux/configfs.h>fs/configfs/file.c +2
-0@@ -48,6 +49,10 @@ struct configfs_buffer {struct configfs_item_operations * ops;struct mutex mutex;int needs_read_fill; +int read_in_progress; +int write_in_progress;
Those 2 should be probably bool instead of int.
Quoted 3 lines
fs/configfs/file.c +2
-0+char *bin_buffer; +int bin_buffer_size; };
(...)
fs/configfs/inode.c const unsigned char * configfs_get_name(struct configfs_dirent *sd) · line 221
Quoted 10 lines
fs/configfs/inode.c +1
-1@@ -218,7 +218,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd)if (sd->s_type & (CONFIGFS_DIR |CONFIGFS_ITEM_LINK ))return sd->s_dentry->d_name.name; -if (sd->s_type &CONFIGFS_ITEM_ATTR ) { +if (sd->s_type & (CONFIGFS_ITEM_ATTR |CONFIGFS_ITEM_BIN_ATTR )) {
I would also recomend a static inline helper here instead of adding this or as this may simplify the code in a few places.
Best regards,
Signature · 3 lines
Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics
Quoted 13 lines · Christoph Hellwig
Hi all,
I really want the configfs change in this series to go into 4.5. Originally both Pantelis and I had changes ontop that would require it in a stable non-rebased branch, but one or both of those might not make the cut.
As this has been a problem with a increased configfs actitivly lately I'd like to volunteer to co-maintain configfs and keep a git tree that can be used as stable baseline for all involved parties instead of the patch-only -mm tree or occasional merge through the SCSI target tree.
I've started out with just this patch in my tree:
Quoted 9 lines
git://git.infradead.org/users/hch/vfs.gitconfigfs-for-4.5or gitweb:
http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/configfs-for-4.5
I know Krzysztof also had pending changes and I'd be happy to collect them as well.
Hoi,
I'm well aware that I've caught some reviews and missed some others. I support funneling through hch's tree here.
Joel
Signature · 5 lines
"A narcissist is someone better looking than you are."
- Gore Vidal
http://www.jlbec.org/
[email protected]Quoted 5 lines · Joel Becker
Hoi,
I'm well aware that I've caught some reviews and missed some others. I support funneling through hch's tree here.
Thanks. I've created a separate repo for configfs:
git://git.infradead.org/users/hch/configfs.git
gitweb:
http://git.infradead.org/users/hch/configfs.git
this has the binary attribute patch with the most important review fixes, and the patch attached below to add myself as co-maintainer and update the git repo in MAINTAINERS. I'd like a signoff from you for that second one and then move it to for-next.
Fengguang, can you give this tree the full buildbot treatment?
Stephen, can you add
git://git.infradead.org/users/hch/configfs.git for-next
to for-next? It's currently emptry but will contain the two commits from the pending branch as soon as I get the signoff from Joel.
Quoted 10 lines · Christoph Hellwig
Quoted 5 lines · Joel Becker
Hoi,
I'm well aware that I've caught some reviews and missed some others. I support funneling through hch's tree here.
Thanks. I've created a separate repo for configfs:
git://git.infradead.org/users/hch/configfs.git
[snip]
Quoted 1 line
Fengguang, can you give this tree the full buildbot treatment?
OK, done.
Thanks,
Fengguang
Hi Christoph,
Quoted 7 lines · On Mon, 4 Jan 2016 12:51:01 +0100 Christoph Hellwig <[email protected]> wrote:
Stephen, can you add
git://git.infradead.org/users/hch/configfs.gitfor-nextto for-next? It's currently emptry but will contain the two commits from the pending branch as soon as I get the signoff from Joel.
Added from today.
Thanks for adding your subsystem tree as a participant of linux-next. As you may know, this is not a judgment of your code. The purpose of linux-next is for integration testing and to lower the impact of conflicts between subsystems in the next merge window.
You will need to ensure that the patches/commits in your tree/series have been:
* submitted under GPL v2 (or later) and include the Contributor's Signed-off-by,
* posted to the relevant mailing list,
* reviewed by you (or another maintainer of your subsystem tree),
* successfully unit tested, and
* destined for the current or next Linux merge window.
Basically, this should be just what you would send to Linus (or ask him to fetch). It is allowed to be rebased if you deem it necessary.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected]
Quoted 11 lines · Christoph Hellwig
Quoted 5 lines · Joel Becker
Hoi,
I'm well aware that I've caught some reviews and missed some others. I support funneling through hch's tree here.
Thanks. I've created a separate repo for configfs:
git://git.infradead.org/users/hch/configfs.git
Quoted 8 lines
gitweb:
http://git.infradead.org/users/hch/configfs.git
this has the binary attribute patch with the most important review fixes, and the patch attached below to add myself as co-maintainer and update the git repo in
MAINTAINERS. I'd like a signoff from you for that second one and then move it to for-next.
commit 4170b875784c85790388952200ee1432cdb70793
Signature · 6 lines
"What no boss of a programmer can ever understand is that a programmer is working when he's staring out of the window" - With apologies to Burton Rascoe http://www.jlbec.org/ [email protected]
Quoted 13 lines · Christoph Hellwig
Hi all,
I really want the configfs change in this series to go into 4.5. Originally both Pantelis and I had changes ontop that would require it in a stable non-rebased branch, but one or both of those might not make the cut.
As this has been a problem with a increased configfs actitivly lately I'd like to volunteer to co-maintain configfs and keep a git tree that can be used as stable baseline for all involved parties instead of the patch-only -mm tree or occasional merge through the SCSI target tree.
I've started out with just this patch in my tree:
Quoted 8 lines
git://git.infradead.org/users/hch/vfs.gitconfigfs-for-4.5or gitweb:
http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/configfs-for-4.5
I know Krzysztof also had pending changes and I'd be happy to collect them as well.
Wrt to Krzysztof's set of aforementioned configfs patches, they have been in target-pending/for-next for the last few weeks now..
Since the larger set of Andrzej's usb-gadget target changes depend upon these configfs changes, it makes sense to keep them together in the target tree.
Beyond that, I'm glad to see a dedicated configfs tree.
Thanks HCH.