]> git.karo-electronics.de Git - linux-beck.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)
commit9cf8bd529c6ba81402ebf6b7a56307b0787e4f93
treef53a27f54dbdec467905608fa1585a3e5b7b6e67
parentaf7d9f0c57941b465043681cb5c3410f7f3f1a41
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