aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJosh Durgin <[email protected]>2013-10-01 03:10:04 +0000
committerJosh Durgin <[email protected]>2014-06-11 01:09:25 +0000
commit22001f619f29ddf66582d834223dcff4c0b74595 (patch)
tree67d9a9cdcb5c7f3fe45e1fab6393c130eb65857c /tools/perf/scripts/python/syscall-counts.py
parentrbd: move calls that may sleep out of spin lock range (diff)
downloadkernel-22001f619f29ddf66582d834223dcff4c0b74595.tar.gz
kernel-22001f619f29ddf66582d834223dcff4c0b74595.zip
rbd: only set disk to read-only once
rbd_open(), called every time the device is opened, calls set_device_ro(). There's no reason to set the device read-only or read-write every time it is opened. Just do this once during device setup, using set_disk_ro() instead because the struct block_device isn't available to us there. Signed-off-by: Josh Durgin <[email protected]> Reviewed-by: Alex Elder <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions