Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1434244

Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available

From Christoph Hellwig <hch@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available
Date 2016-06-30 08:30 +0200
Message-ID <rPDE6-67b-35@gated-at.bofh.it> (permalink)
References <rPzAt-3BV-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 30, 2016 at 09:59:41AM +0800, Fam Zheng wrote:
> Documentation/kobject.txt:
> > Use the KOBJ_ADD action for when the kobject is first added to the kernel.
> > This should be done only after any attributes or children of the kobject
> > have been initialized properly, as userspace will instantly start to look
> > for them when this call happens.
> 
> Unfortunately it seems impossible to fix this generally without touching the
> offending callers.  The approach I'm proposing here is adding a flag to
> suppress uevent in add_disk(), which is patch 1, then in later patches, convert
> any caller to only trigger the uevent when attributes are added.

We (or rather Dan) is touching most add_disk callers anyway for the
driverfs_dev removal.  Let's just pass the array of attributes to
a disk_add variant and solve the issue for real.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/12] gendisk: Generate uevent after attribute available Fam Zheng <famz@redhat.com> - 2016-06-30 04:10 +0200
  Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute  available Christoph Hellwig <hch@infradead.org> - 2016-06-30 08:30 +0200
    Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute  available Fam Zheng <famz@redhat.com> - 2016-06-30 08:40 +0200
      Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute  available Christoph Hellwig <hch@infradead.org> - 2016-06-30 08:50 +0200
        Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute  available Fam Zheng <famz@redhat.com> - 2016-07-01 03:10 +0200
          Re: [PATCH v2 00/12] gendisk: Generate uevent after attribute available Dan Williams <dan.j.williams@intel.com> - 2016-07-01 03:30 +0200

csiph-web