Message ID | 20240430-vv-dax_abi_fixes-v3-4-e3dcd755774c@intel.com (mailing list archive) |
---|---|
State | Handled Elsewhere, archived |
Delegated to: | Patchwork Bot |
Headers | show |
Series | dax/bus.c: Fixups for dax-bus locking | expand |
diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index 0011a6e6a8f2..f24b67c64d5e 100644 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -937,11 +937,11 @@ static ssize_t size_show(struct device *dev, unsigned long long size; int rc; - rc = down_write_killable(&dax_dev_rwsem); + rc = down_read_interruptible(&dax_dev_rwsem); if (rc) return rc; size = dev_dax_size(dev_dax); - up_write(&dax_dev_rwsem); + up_read(&dax_dev_rwsem); return sysfs_emit(buf, "%llu\n", size); }