diff options
author | Bart Van Assche <[email protected]> | 2017-10-31 11:03:11 -0700 |
---|---|---|
committer | Nicholas Bellinger <[email protected]> | 2017-11-04 15:15:41 -0700 |
commit | c01706982350224a6c3653ca5b6f24f37dbbecad (patch) | |
tree | 96b84c3f6803a440e66e2da13cac50257258770a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | d7e595ddd5b243aa9ba1948d5e0a37783b5415af (diff) |
target: Inline transport_put_cmd()
Since all transput_put_cmd() does is to call target_put_sess_cmd(),
inline transport_put_cmd() into its callers. Leave out the BUG_ON()
statement because if cmd->se_tfo == NULL then cmd->cmd_kref is 0
and kref_put() will complain anyway. Notes:
- transport_init_se_cmd() initializes both .se_tfo and .cmd_kref.
- The only target driver that does not call transport_init_se_cmd()
for all commands is the iSCSI target driver. See also
iscsi_target_rx_opcode().
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Mike Christie <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions