File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 6
6
//! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h)
7
7
8
8
use crate :: block:: mq:: { raw_writer:: RawWriter , Operations , TagSet } ;
9
- use crate :: error;
10
9
use crate :: { bindings, error:: from_err_ptr, error:: Result , sync:: Arc } ;
10
+ use crate :: { error, static_lock_class} ;
11
11
use core:: fmt:: { self , Write } ;
12
12
13
13
/// A builder for [`GenDisk`].
@@ -93,8 +93,6 @@ impl GenDiskBuilder {
93
93
name : fmt:: Arguments < ' _ > ,
94
94
tagset : Arc < TagSet < T > > ,
95
95
) -> Result < GenDisk < T > > {
96
- let lock_class_key = crate :: sync:: LockClassKey :: new ( ) ;
97
-
98
96
// SAFETY: `bindings::queue_limits` contain only fields that are valid when zeroed.
99
97
let mut lim: bindings:: queue_limits = unsafe { core:: mem:: zeroed ( ) } ;
100
98
@@ -110,7 +108,7 @@ impl GenDiskBuilder {
110
108
tagset. raw_tag_set ( ) ,
111
109
& mut lim,
112
110
core:: ptr:: null_mut ( ) ,
113
- lock_class_key . as_ptr ( ) ,
111
+ static_lock_class ! ( ) . as_ptr ( ) ,
114
112
)
115
113
} ) ?;
116
114
You can’t perform that action at this time.
0 commit comments