diff options
| author | Vishal Verma <[email protected]> | 2024-04-30 11:44:25 -0600 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-05-07 10:37:01 -0700 |
| commit | e39dbcfba714c4c2e924e96fc8fdde1080a5a737 (patch) | |
| tree | cdf6df6b67e5074294cd68567a0a5babfc837aa9 | |
| parent | 6f6544f27e41f9d7dca55c288f12175a9c48dfe2 (diff) | |
dax/bus.c: don't use down_write_killable for non-user processes
Change an instance of down_write_killable() to a simple down_write() where
there is no user process that might want to interrupt the operation.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: c05ae9d85b47 ("dax/bus.c: replace driver-core lock usage by a local rwsem")
Signed-off-by: Vishal Verma <[email protected]>
Reported-by: Dan Williams <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Cc: Alison Schofield <[email protected]>
Cc: Dave Jiang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
| -rw-r--r-- | drivers/dax/bus.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 @@ err_id: 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); |