summaryrefslogtreecommitdiffstats
path: root/fs/xattr.c
diff options
context:
space:
mode:
authorKevin Kou <qdkevin.kou@gmail.com>2019-12-27 14:11:16 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-31 05:33:05 +0100
commitf398efc14a9277b55defff71f59a46fdf13c713f (patch)
tree734bef8d3a81a1c55ad5c7736973a17bb7bd1259 /fs/xattr.c
parentMerge branch 'Improvements-to-SJA1105-DSA-RX-timestamping' (diff)
downloadlinux-f398efc14a9277b55defff71f59a46fdf13c713f.tar.xz
linux-f398efc14a9277b55defff71f59a46fdf13c713f.zip
sctp: add enabled check for path tracepoint loop.
sctp_outq_sack is the main function handles SACK, it is called very frequently. As the commit "move trace_sctp_probe_path into sctp_outq_sack" added below code to this function, sctp tracepoint is disabled most of time, but the loop of transport list will be always called even though the tracepoint is disabled, this is unnecessary. + /* SCTP path tracepoint for congestion control debugging. */ + list_for_each_entry(transport, transport_list, transports) { + trace_sctp_probe_path(transport, asoc); + } This patch is to add tracepoint enabled check at outside of the loop of transport list, and avoid traversing the loop when trace is disabled, it is a small optimization. Signed-off-by: Kevin Kou <qdkevin.kou@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/xattr.c')
0 files changed, 0 insertions, 0 deletions