.. | .. |
---|
150 | 150 | struct dm_bio_prison_cell **cell_result) |
---|
151 | 151 | { |
---|
152 | 152 | int r; |
---|
153 | | - unsigned long flags; |
---|
154 | 153 | |
---|
155 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 154 | + spin_lock_irq(&prison->lock); |
---|
156 | 155 | r = __bio_detain(prison, key, inmate, cell_prealloc, cell_result); |
---|
157 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 156 | + spin_unlock_irq(&prison->lock); |
---|
158 | 157 | |
---|
159 | 158 | return r; |
---|
160 | 159 | } |
---|
.. | .. |
---|
198 | 197 | struct dm_bio_prison_cell *cell, |
---|
199 | 198 | struct bio_list *bios) |
---|
200 | 199 | { |
---|
201 | | - unsigned long flags; |
---|
202 | | - |
---|
203 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 200 | + spin_lock_irq(&prison->lock); |
---|
204 | 201 | __cell_release(prison, cell, bios); |
---|
205 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 202 | + spin_unlock_irq(&prison->lock); |
---|
206 | 203 | } |
---|
207 | 204 | EXPORT_SYMBOL_GPL(dm_cell_release); |
---|
208 | 205 | |
---|
.. | .. |
---|
250 | 247 | void *context, |
---|
251 | 248 | struct dm_bio_prison_cell *cell) |
---|
252 | 249 | { |
---|
253 | | - unsigned long flags; |
---|
254 | | - |
---|
255 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 250 | + spin_lock_irq(&prison->lock); |
---|
256 | 251 | visit_fn(context, cell); |
---|
257 | 252 | rb_erase(&cell->node, &prison->cells); |
---|
258 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 253 | + spin_unlock_irq(&prison->lock); |
---|
259 | 254 | } |
---|
260 | 255 | EXPORT_SYMBOL_GPL(dm_cell_visit_release); |
---|
261 | 256 | |
---|
.. | .. |
---|
275 | 270 | struct dm_bio_prison_cell *cell) |
---|
276 | 271 | { |
---|
277 | 272 | int r; |
---|
278 | | - unsigned long flags; |
---|
279 | 273 | |
---|
280 | | - spin_lock_irqsave(&prison->lock, flags); |
---|
| 274 | + spin_lock_irq(&prison->lock); |
---|
281 | 275 | r = __promote_or_release(prison, cell); |
---|
282 | | - spin_unlock_irqrestore(&prison->lock, flags); |
---|
| 276 | + spin_unlock_irq(&prison->lock); |
---|
283 | 277 | |
---|
284 | 278 | return r; |
---|
285 | 279 | } |
---|
.. | .. |
---|
379 | 373 | int dm_deferred_set_add_work(struct dm_deferred_set *ds, struct list_head *work) |
---|
380 | 374 | { |
---|
381 | 375 | int r = 1; |
---|
382 | | - unsigned long flags; |
---|
383 | 376 | unsigned next_entry; |
---|
384 | 377 | |
---|
385 | | - spin_lock_irqsave(&ds->lock, flags); |
---|
| 378 | + spin_lock_irq(&ds->lock); |
---|
386 | 379 | if ((ds->sweeper == ds->current_entry) && |
---|
387 | 380 | !ds->entries[ds->current_entry].count) |
---|
388 | 381 | r = 0; |
---|
.. | .. |
---|
392 | 385 | if (!ds->entries[next_entry].count) |
---|
393 | 386 | ds->current_entry = next_entry; |
---|
394 | 387 | } |
---|
395 | | - spin_unlock_irqrestore(&ds->lock, flags); |
---|
| 388 | + spin_unlock_irq(&ds->lock); |
---|
396 | 389 | |
---|
397 | 390 | return r; |
---|
398 | 391 | } |
---|