@@ -167,16 +167,16 @@ static struct tcf_meta_ops *find_ife_oplist(u16 metaid)
167167{
168168 struct tcf_meta_ops * o ;
169169
170- read_lock (& ife_mod_lock );
170+ read_lock_bh (& ife_mod_lock );
171171 list_for_each_entry (o , & ifeoplist , list ) {
172172 if (o -> metaid == metaid ) {
173173 if (!try_module_get (o -> owner ))
174174 o = NULL ;
175- read_unlock (& ife_mod_lock );
175+ read_unlock_bh (& ife_mod_lock );
176176 return o ;
177177 }
178178 }
179- read_unlock (& ife_mod_lock );
179+ read_unlock_bh (& ife_mod_lock );
180180
181181 return NULL ;
182182}
@@ -190,12 +190,12 @@ int register_ife_op(struct tcf_meta_ops *mops)
190190 !mops -> get || !mops -> alloc )
191191 return - EINVAL ;
192192
193- write_lock (& ife_mod_lock );
193+ write_lock_bh (& ife_mod_lock );
194194
195195 list_for_each_entry (m , & ifeoplist , list ) {
196196 if (m -> metaid == mops -> metaid ||
197197 (strcmp (mops -> name , m -> name ) == 0 )) {
198- write_unlock (& ife_mod_lock );
198+ write_unlock_bh (& ife_mod_lock );
199199 return - EEXIST ;
200200 }
201201 }
@@ -204,7 +204,7 @@ int register_ife_op(struct tcf_meta_ops *mops)
204204 mops -> release = ife_release_meta_gen ;
205205
206206 list_add_tail (& mops -> list , & ifeoplist );
207- write_unlock (& ife_mod_lock );
207+ write_unlock_bh (& ife_mod_lock );
208208 return 0 ;
209209}
210210EXPORT_SYMBOL_GPL (unregister_ife_op );
@@ -214,15 +214,15 @@ int unregister_ife_op(struct tcf_meta_ops *mops)
214214 struct tcf_meta_ops * m ;
215215 int err = - ENOENT ;
216216
217- write_lock (& ife_mod_lock );
217+ write_lock_bh (& ife_mod_lock );
218218 list_for_each_entry (m , & ifeoplist , list ) {
219219 if (m -> metaid == mops -> metaid ) {
220220 list_del (& mops -> list );
221221 err = 0 ;
222222 break ;
223223 }
224224 }
225- write_unlock (& ife_mod_lock );
225+ write_unlock_bh (& ife_mod_lock );
226226
227227 return err ;
228228}
@@ -343,13 +343,13 @@ static int use_all_metadata(struct tcf_ife_info *ife)
343343 int rc = 0 ;
344344 int installed = 0 ;
345345
346- read_lock (& ife_mod_lock );
346+ read_lock_bh (& ife_mod_lock );
347347 list_for_each_entry (o , & ifeoplist , list ) {
348348 rc = add_metainfo (ife , o -> metaid , NULL , 0 , true);
349349 if (rc == 0 )
350350 installed += 1 ;
351351 }
352- read_unlock (& ife_mod_lock );
352+ read_unlock_bh (& ife_mod_lock );
353353
354354 if (installed )
355355 return 0 ;
0 commit comments