File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ struct idxd_cdev_context {
28
28
* global to avoid conflict file names.
29
29
*/
30
30
static DEFINE_IDA (file_ida );
31
- static DEFINE_MUTEX (ida_lock );
32
31
33
32
/*
34
33
* ictx is an array based off of accelerator types. enum idxd_type
@@ -123,9 +122,7 @@ static void idxd_file_dev_release(struct device *dev)
123
122
struct idxd_device * idxd = wq -> idxd ;
124
123
int rc ;
125
124
126
- mutex_lock (& ida_lock );
127
125
ida_free (& file_ida , ctx -> id );
128
- mutex_unlock (& ida_lock );
129
126
130
127
/* Wait for in-flight operations to complete. */
131
128
if (wq_shared (wq )) {
@@ -284,9 +281,7 @@ static int idxd_cdev_open(struct inode *inode, struct file *filp)
284
281
}
285
282
286
283
idxd_cdev = wq -> idxd_cdev ;
287
- mutex_lock (& ida_lock );
288
284
ctx -> id = ida_alloc (& file_ida , GFP_KERNEL );
289
- mutex_unlock (& ida_lock );
290
285
if (ctx -> id < 0 ) {
291
286
dev_warn (dev , "ida alloc failure\n" );
292
287
goto failed_ida ;
You can’t perform that action at this time.
0 commit comments