]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: replace mutex_is_locked() warnings with lockdep_assert_held
authorDan Williams <dan.j.williams@intel.com>
Fri, 16 Dec 2016 04:04:31 +0000 (20:04 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 16 Dec 2016 04:04:31 +0000 (20:04 -0800)
commitb37302ce002d225b7cc1b79635269de7e0cd654c
treef53a27f54dbdec467905608fa1585a3e5b7b6e67
parent481b346124e5a7fc26278cdbf0ca219201ac0404
libnvdimm: replace mutex_is_locked() warnings with lockdep_assert_held

For warnings that should only ever trigger during development and
testing replace WARN statements with lockdep_assert_held. The lockdep
pattern is prevalent, and these paths are are well covered by libnvdimm
unit tests.

Reported-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/claim.c
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/region_devs.c