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-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux