Re: sysfs group not found for kobject on mvsas drive removal

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

 



On Tue, May 12, 2015 at 1:20 PM, Praveen Murali <pmurali@xxxxxxxxxxxx> wrote:
>> > -----Original Message-----
>> > From: Dan Williams [mailto:dan.j.williams@xxxxxxxxx]
>> > Sent: Monday, May 11, 2015 3:44 PM
>> > To: Praveen Murali
>> > Cc: James Bottomley (James.Bottomley@xxxxxxxxxxxxxxxxxxxxx); linux-
>> > scsi@xxxxxxxxxxxxxxx
>> > Subject: Re: sysfs group not found for kobject on mvsas drive removal
>> >
>> > So I wonder if this is a new warning, because as far as I can tell
>> > we've always been double deleting the devices below sas_port.  It
>> > seems we should delete all the devices from rphy down before deleting
>> > the parent port.  Something like this (excuse the whitespace
>> > mangling).  Only compile tested as I don't have a SAS setup handy.
>> >
> I tested that patch on my setup with the Marvell SAS HBA and it seems to be working well; all the warnings are gone.

Cool, hmm, makes me nervous when untested patches work right the first
time :-).  I wonder if we are still managing the reference counts
correctly and not leaking devices.  Previously we would get 2 calls to
put_device() on the sas_port device.  Now I think we only get one.
Can you confirm that sas_port_release() is still being called.

/me also wonders why the scsi_transport_class has "port->dev.parent =
get_device(parent);" all over the place.  Parents should be pinned as
long as children are registered.  James, do you recall why these
extra/explicit references are taken?
--
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