mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
dm writecache: interrupt writeback if suspended
If the DM device is suspended, interrupt the writeback sequence so that there is no excessive suspend delay. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
ee50cc19d8
commit
af4f6cabcc
|
|
@ -1844,8 +1844,9 @@ static void writecache_writeback(struct work_struct *work)
|
|||
|
||||
n_walked++;
|
||||
if (unlikely(n_walked > WRITEBACK_LATENCY) &&
|
||||
likely(!wc->writeback_all) && likely(!dm_suspended(wc->ti))) {
|
||||
queue_work(wc->writeback_wq, &wc->writeback_work);
|
||||
likely(!wc->writeback_all)) {
|
||||
if (likely(!dm_suspended(wc->ti)))
|
||||
queue_work(wc->writeback_wq, &wc->writeback_work);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user