]> 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)
commit6b82bc7d08a22950cc660aa048515f80861f46d5
treef53a27f54dbdec467905608fa1585a3e5b7b6e67
parent7a6eb8b97ef2ac39a51aea1578d6055a3afd679c
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