diff options
author | Vishal Verma <[email protected]> | 2024-04-30 11:44:26 -0600 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-05-07 10:37:01 -0700 |
commit | 2acf04532d6d655d8c3b2ee4ddeb320107043086 (patch) | |
tree | 65a9637e7ca07490d33b656ee3bd5f8f767cdc90 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e39dbcfba714c4c2e924e96fc8fdde1080a5a737 (diff) |
dax/bus.c: use the right locking mode (read vs write) in size_show
In size_show(), the dax_dev_rwsem only needs a read lock, but was
acquiring a write lock. Change it to down_read_interruptible() so it
doesn't unnecessarily hold a write lock.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: c05ae9d85b47 ("dax/bus.c: replace driver-core lock usage by a local rwsem")
Signed-off-by: Vishal Verma <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Cc: Alison Schofield <[email protected]>
Cc: Dave Jiang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions