.. | .. |
---|
177 | 177 | struct dm_bio_prison_cell_v2 **cell_result) |
---|
178 | 178 | { |
---|
179 | 179 | int r; |
---|
180 | | - unsigned long flags; |
---|
181 | 180 | |
---|
182 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 181 | + spin_lock_irq(&prison->lock); |
---|
183 | 182 | r = __get(prison, key, lock_level, inmate, cell_prealloc, cell_result); |
---|
184 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 183 | + spin_unlock_irq(&prison->lock); |
---|
185 | 184 | |
---|
186 | 185 | return r; |
---|
187 | 186 | } |
---|
.. | .. |
---|
261 | 260 | struct dm_bio_prison_cell_v2 **cell_result) |
---|
262 | 261 | { |
---|
263 | 262 | int r; |
---|
264 | | - unsigned long flags; |
---|
265 | 263 | |
---|
266 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 264 | + spin_lock_irq(&prison->lock); |
---|
267 | 265 | r = __lock(prison, key, lock_level, cell_prealloc, cell_result); |
---|
268 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 266 | + spin_unlock_irq(&prison->lock); |
---|
269 | 267 | |
---|
270 | 268 | return r; |
---|
271 | 269 | } |
---|
.. | .. |
---|
285 | 283 | struct dm_bio_prison_cell_v2 *cell, |
---|
286 | 284 | struct work_struct *continuation) |
---|
287 | 285 | { |
---|
288 | | - unsigned long flags; |
---|
289 | | - |
---|
290 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 286 | + spin_lock_irq(&prison->lock); |
---|
291 | 287 | __quiesce(prison, cell, continuation); |
---|
292 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 288 | + spin_unlock_irq(&prison->lock); |
---|
293 | 289 | } |
---|
294 | 290 | EXPORT_SYMBOL_GPL(dm_cell_quiesce_v2); |
---|
295 | 291 | |
---|
.. | .. |
---|
309 | 305 | unsigned new_lock_level) |
---|
310 | 306 | { |
---|
311 | 307 | int r; |
---|
312 | | - unsigned long flags; |
---|
313 | 308 | |
---|
314 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 309 | + spin_lock_irq(&prison->lock); |
---|
315 | 310 | r = __promote(prison, cell, new_lock_level); |
---|
316 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 311 | + spin_unlock_irq(&prison->lock); |
---|
317 | 312 | |
---|
318 | 313 | return r; |
---|
319 | 314 | } |
---|
.. | .. |
---|
329 | 324 | bio_list_init(&cell->bios); |
---|
330 | 325 | |
---|
331 | 326 | if (cell->shared_count) { |
---|
332 | | - cell->exclusive_lock = 0; |
---|
| 327 | + cell->exclusive_lock = false; |
---|
333 | 328 | return false; |
---|
334 | 329 | } |
---|
335 | 330 | |
---|
.. | .. |
---|
342 | 337 | struct bio_list *bios) |
---|
343 | 338 | { |
---|
344 | 339 | bool r; |
---|
345 | | - unsigned long flags; |
---|
346 | 340 | |
---|
347 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 341 | + spin_lock_irq(&prison->lock); |
---|
348 | 342 | r = __unlock(prison, cell, bios); |
---|
349 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 343 | + spin_unlock_irq(&prison->lock); |
---|
350 | 344 | |
---|
351 | 345 | return r; |
---|
352 | 346 | } |
---|