Re: [PATCH 6/6] target: push session reinstatement out of transport_generic_free_cmd

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

 



> After taking another look at the 'session_reinstatement' bit, I think
> it's legacy cruft for iscsi-target, and it's safe to drop it entirely.
> 
> Along with your original series, i'm including the following patch.

Makes sense.  In addition you can also remove the bool returns from
transport_put_cmd and transport_generic_free_cmd now.

Another thing I would really like to to is to clean
upcmd->transport_wait_for_tasks.  It is a fairly odd use of a callback
in every cmd, which essentially replaces a try-state:

 - noop if explicitly set by assigning transport_nop_wait_for_tasks
 - finish sutdown if explicitly assigning transport_lun_wait_for_tasks
 - 

In generic code we only call it with both flags sent to 0/false from
transport_generic_free_cmd, but the iSCSI target uses all variants,
and passes the arguments.

It seems to me like we should simple have flags in the se_cmdn to
not wait, and one inside the iscsi code for the current semantics if
neither callback is set (if that is indeed still needed), and then
call the 0/0 variant directly from transport_generic_free_cmd.

Note that the iSCSI code callers make heavy use of SCF_SE_LUN_CMD
discussed in the next mail and really could benefit from factoring
and coument the callers to too, but I don't really know the code
very well.

--
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