aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/tape_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/tape_block.c')
-rw-r--r--drivers/s390/char/tape_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c
index f0fa9ca5cb2c..55d2d0f4eabc 100644
--- a/drivers/s390/char/tape_block.c
+++ b/drivers/s390/char/tape_block.c
@@ -264,7 +264,7 @@ cleanup_queue:
264void 264void
265tapeblock_cleanup_device(struct tape_device *device) 265tapeblock_cleanup_device(struct tape_device *device)
266{ 266{
267 flush_scheduled_work(); 267 flush_work_sync(&device->blk_data.requeue_task);
268 tape_put_device(device); 268 tape_put_device(device);
269 269
270 if (!device->blk_data.disk) { 270 if (!device->blk_data.disk) {