Re: scsi_sysfs_add_sdev(): uevent emission versus attribute creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 22, 2009 at 14:01, Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> wrote:
> For many years now, the sbp2 driver has been providing a host template
> attribute which contains the SBP specific target identifier and logical unit
> identifier.  Userspace is taking this attribute to create the
> /dev/disk/by-id symlink.
>
> That's obviously racy.  The sdev's attribute should already be there when
> the disk's and partitions' symlinks are going to be created.

> How am I going to fix this?

Maybe it can hook into:
  BUS_NOTIFY_ADD_DEVICE
to create the additional attributes?

That logic is in: drivers/base/core.c : 941.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux