linux/drivers/dax
Vishal Verma c14c647bbe dax/bus.c: replace WARN_ON_ONCE() with lockdep asserts
Patch series "dax/bus.c: Fixups for dax-bus locking", v3.

Commit Fixes: c05ae9d85b ("dax/bus.c: replace driver-core lock usage by
a local rwsem") introduced a few problems that this series aims to fix. 
Add back device_lock() where it was correctly used (during device
manipulation operations), remove conditional locking in
unregister_dax_dev() and unregister_dax_mapping(), use non-interruptible
versions of rwsem locks when not called from a user process, and fix up a
write vs.  read usage of an rwsem.


This patch (of 4):

In [1], Dan points out that all of the WARN_ON_ONCE() usage in the
referenced patch should be replaced with lockdep_assert_held, or
lockdep_held_assert_write().  Replace these as appropriate.

Link: https://lkml.kernel.org/r/20240430-vv-dax_abi_fixes-v3-0-e3dcd755774c@intel.com
Link: https://lore.kernel.org/r/65f0b5ef41817_aa222941a@dwillia2-mobl3.amr.corp.intel.com.notmuch [1]
Link: https://lkml.kernel.org/r/20240430-vv-dax_abi_fixes-v3-1-e3dcd755774c@intel.com
Fixes: c05ae9d85b ("dax/bus.c: replace driver-core lock usage by a local rwsem")
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Reported-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Cc: Alison Schofield <alison.schofield@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-05-07 10:37:00 -07:00
..
hmem dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
pmem dax: Kill DEV_DAX_PMEM_COMPAT 2021-11-24 19:21:35 -08:00
bus.c dax/bus.c: replace WARN_ON_ONCE() with lockdep asserts 2024-05-07 10:37:00 -07:00
bus.h dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
cxl.c dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
dax-private.h dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
device.c mm: switch mm->get_unmapped_area() to a flag 2024-04-25 20:56:25 -07:00
Kconfig cxl for v6.3 2023-02-25 09:19:23 -08:00
kmem.c memory tier: dax/kmem: introduce an abstract layer for finding, allocating, and putting memory types 2024-05-05 17:53:25 -07:00
Makefile cxl/dax: Create dax devices for CXL RAM regions 2023-02-10 17:33:45 -08:00
pmem.c dax/kmem: allow kmem to add memory with memmap_on_memory 2023-12-10 16:51:35 -08:00
super.c - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames 2024-03-14 17:43:30 -07:00