Searched hist:"96 b26c8c64c7a30488b8b404f7a63346df4c3bff" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm.c | diff 96b26c8c64c7a30488b8b404f7a63346df4c3bff Thu Jan 08 17:52:26 CST 2015 Mikulas Patocka <mpatocka@redhat.com> dm: fix handling of multiple internal suspends
Commit ffcc393641 ("dm: enhance internal suspend and resume interface") attempted to handle multiple internal suspends on the same device, but it did that incorrectly. When these functions are called in this order on the same device the device is no longer suspended, but it should be: dm_internal_suspend_noflush dm_internal_suspend_noflush dm_internal_resume
Fix this bug by maintaining an 'internal_suspend_count' and resuming the device when this count drops to zero.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|