Message ID | 20240430-vv-dax_abi_fixes-v3-3-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 e2c7354ce328..0011a6e6a8f2 100644 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -1540,12 +1540,8 @@ static struct dev_dax *__devm_create_dev_dax(struct dev_dax_data *data) struct dev_dax *devm_create_dev_dax(struct dev_dax_data *data) { struct dev_dax *dev_dax; - int rc; - - rc = down_write_killable(&dax_region_rwsem); - if (rc) - return ERR_PTR(rc); + down_write(&dax_region_rwsem); dev_dax = __devm_create_dev_dax(data); up_write(&dax_region_rwsem);