Commit 4550a71
Revert "dm: fix a race condition in retrieve_deps"
This reverts commit f6007dc.
Commit f6007dc ("dm: fix a race condition in retrieve_deps") was
added to fix a race between retrieving the list of dm table devices and
multipath_message() modifying the list of table devices. But Commit
a48f6b8 ("dm mpath: don't call dm_get_device in multipath_message")
removed the call to dm_get_device() from multipath_message(). After that
commit, the only calls to dm_get_device() and dm_put_device() are in
target constructors and destructors, so the race with retrieve_deps() is
no longer possible.
Suggested-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>1 parent 787bd63 commit 4550a71
3 files changed
Lines changed: 9 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | | - | |
1652 | | - | |
1653 | 1651 | | |
1654 | 1652 | | |
1655 | 1653 | | |
| |||
1664 | 1662 | | |
1665 | 1663 | | |
1666 | 1664 | | |
1667 | | - | |
| 1665 | + | |
1668 | 1666 | | |
1669 | 1667 | | |
1670 | 1668 | | |
| |||
1676 | 1674 | | |
1677 | 1675 | | |
1678 | 1676 | | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | 1677 | | |
1683 | 1678 | | |
1684 | 1679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
380 | 379 | | |
381 | 380 | | |
382 | 381 | | |
383 | | - | |
384 | | - | |
385 | 382 | | |
386 | 383 | | |
387 | 384 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 385 | + | |
| 386 | + | |
392 | 387 | | |
393 | 388 | | |
394 | 389 | | |
395 | 390 | | |
396 | | - | |
| 391 | + | |
397 | 392 | | |
398 | 393 | | |
399 | 394 | | |
| |||
403 | 398 | | |
404 | 399 | | |
405 | 400 | | |
406 | | - | |
| 401 | + | |
407 | 402 | | |
408 | 403 | | |
409 | 404 | | |
410 | | - | |
411 | 405 | | |
412 | 406 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 407 | | |
418 | 408 | | |
419 | 409 | | |
| |||
464 | 454 | | |
465 | 455 | | |
466 | 456 | | |
467 | | - | |
468 | | - | |
| 457 | + | |
469 | 458 | | |
470 | 459 | | |
471 | | - | |
472 | | - | |
473 | 460 | | |
474 | 461 | | |
475 | 462 | | |
| |||
478 | 465 | | |
479 | 466 | | |
480 | 467 | | |
481 | | - | |
482 | | - | |
| 468 | + | |
| 469 | + | |
483 | 470 | | |
484 | 471 | | |
485 | | - | |
| 472 | + | |
486 | 473 | | |
487 | 474 | | |
488 | 475 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | 476 | | |
493 | 477 | | |
494 | 478 | | |
| |||
0 commit comments