diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/block/genhd.c b/block/genhd.c index cac7366957c3..5d8b44a6442b 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1534,10 +1534,8 @@ void disk_flush_events(struct gendisk *disk, unsigned int mask) | |||
1534 | 1534 | ||
1535 | spin_lock_irq(&ev->lock); | 1535 | spin_lock_irq(&ev->lock); |
1536 | ev->clearing |= mask; | 1536 | ev->clearing |= mask; |
1537 | if (!ev->block) { | 1537 | if (!ev->block) |
1538 | cancel_delayed_work(&ev->dwork); | 1538 | mod_delayed_work(system_nrt_freezable_wq, &ev->dwork, 0); |
1539 | queue_delayed_work(system_nrt_freezable_wq, &ev->dwork, 0); | ||
1540 | } | ||
1541 | spin_unlock_irq(&ev->lock); | 1539 | spin_unlock_irq(&ev->lock); |
1542 | } | 1540 | } |
1543 | 1541 | ||