diff options
author | Fabio M. De Francesco <[email protected]> | 2023-01-03 18:31:31 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-01-18 18:41:12 -0500 |
commit | 7edd053b3327a3d4e3378c9f932cf959d3249c7f (patch) | |
tree | 204477bf8f45db523df30a139efdccadee8bd4c5 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 1eeedfad9a14898dd1522a6c77d8b33ac2e4b780 (diff) |
scsi: ips: Replace kmap_atomic() with kmap_local_page()
kmap_atomic() is deprecated in favor of kmap_local_page(). Therefore,
replace kmap_atomic() with kmap_local_page() in ips_is_passthru(). In the
meantime remove an unnecessary comment, align code, and remove spaces.
kmap_atomic() is implemented like a kmap_local_page() which also disables
page-faults and preemption (the latter only for !PREEMPT_RT kernels). The
code within the mapping/unmapping in ips_is_passthru() is already in atomic
context because of a call to local_irq_save() and kmap_local_page() can be
called in atomic context too (including interrupts).
Therefore, a mere replacement of the old API with the new one is all it is
required (i.e., there is no need to explicitly add any calls to
pagefault_disable() and/or preempt_disable()).
Suggested-by: Ira Weiny <[email protected]>
Signed-off-by: Fabio M. De Francesco <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions