Re: [PATCH 1/2] target: Make target_put_sess_cmd use target_release_cmd_kref

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

 



On Sun, 2011-11-13 at 22:19 -0800, Roland Dreier wrote:
> On Sat, Nov 12, 2011 at 2:14 AM, Nicholas A. Bellinger
> <nab@xxxxxxxxxxxxxxx> wrote:
> > +       kref_init(&se_cmd->cmd_kref);
> > +       kref_get(&se_cmd->cmd_kref);
> 
> If commands are born with two references, that's magic
> enough that I think it at least needs a comment explaining
> what the two references are and where they'll be dropped.
> 

So target_get_sess_cmd() will need to support single and double
reference cases.  Currently tcm_loop, tcm_fc, iscsi_target will be the
users of the single reference case, and ib_srpt and tcm_qla2xxx the
double reference cases.

I'll will get this addressed soon, and add a comment here explaining the
two usage cases.

Thanks for the feedback Roland!

--nab

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


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux