Re: [PATCH] qla_target: Check refcount in find_sess_by_*

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

 



On Thu, 17 May 2012 14:24:25 -0700, Nicholas A. Bellinger wrote:
> 
> Yes, I think it should be fine to move the loop_id and by fc_id lookup
> removal after the vha->hw->tgt.tgt_ops->clear_nacl_from_fcport_map()
> call within the call to qlt_unreg_sess() w/ hardware_lock held..

Just in case it wasn't clear from my other mail: no, that will not be
fine.  Once the refcount drops to zero it must be impossible to hold
or obtain any new references.  My patch didn't completely plug this
hole and neither does your proposal.

If that means the fast path just got slower: tough luck!  Anyone can
write fast incorrect code.  If the only way to write correct code is
to be slow, we shall be slow.

Jörn

--
Doubt is not a pleasant condition, but certainty is an absurd one.
-- Voltaire
--
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