Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1434164
| From | Fam Zheng <famz@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 05/12] aoeblk: Generate uevent after attribute available |
| Date | 2016-06-30 04:10 +0200 |
| Message-ID | <rPzAt-3BV-15@gated-at.bofh.it> (permalink) |
| References | <rPzAt-3BV-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
It is documented that KOBJ_ADD should be generated after the object's attributes and children are ready. We can achieve this with the new disk_gen_uevents interface. Signed-off-by: Fam Zheng <famz@redhat.com> --- drivers/block/aoe/aoeblk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c index e91c5f1..f0cf4d6 100644 --- a/drivers/block/aoe/aoeblk.c +++ b/drivers/block/aoe/aoeblk.c @@ -417,9 +417,10 @@ aoeblk_gdalloc(void *vp) spin_unlock_irqrestore(&d->lock, flags); - add_disk(gd, true); + add_disk(gd, false); aoedisk_add_sysfs(d); aoedisk_add_debugfs(d); + disk_gen_uevents(gd); spin_lock_irqsave(&d->lock, flags); WARN_ON(!(d->flags & DEVFL_GD_NOW)); -- 2.9.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 05/12] aoeblk: Generate uevent after attribute available Fam Zheng <famz@redhat.com> - 2016-06-30 04:10 +0200 Re: [PATCH v2 05/12] aoeblk: Generate uevent after attribute available Ed Cashin <ed.cashin@acm.org> - 2016-07-01 03:30 +0200
csiph-web