Hi, this series is follow up on my last submission where Jirka mentioned it would be nice to have some locking around .debug dir operations.
https://lkml.org/lkml/2015/3/20/126 Following two patches add such functionality by utilizing flock. Since flock supports both shared(read) and exclusive(write) locks both variants are being added so that we can use multiple readers while only one writer. Having said that any comments/suggestions on the code are welcome. I did some basic testing. Mostly manual tool testing as well as the recreator from above mentioned URL. I do not expect any functional change however more testing is welcome. Milos Milos Vyletel (2): perf/tools: add read/write buildid dir locks perf/tools: put new buildid locks to use tools/perf/builtin-buildid-cache.c | 12 +++++ tools/perf/util/build-id.c | 97 ++++++++++++++++++++++++++++++++++---- tools/perf/util/build-id.h | 5 ++ 3 files changed, 106 insertions(+), 8 deletions(-) -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/