diff options
Diffstat (limited to 'drivers/s390/char/tape_block.c')
-rw-r--r-- | drivers/s390/char/tape_block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c index 1efc9f21229e..482e07e388c8 100644 --- a/drivers/s390/char/tape_block.c +++ b/drivers/s390/char/tape_block.c | |||
@@ -65,7 +65,7 @@ static void | |||
65 | tapeblock_trigger_requeue(struct tape_device *device) | 65 | tapeblock_trigger_requeue(struct tape_device *device) |
66 | { | 66 | { |
67 | /* Protect against rescheduling. */ | 67 | /* Protect against rescheduling. */ |
68 | if (atomic_compare_and_swap(0, 1, &device->blk_data.requeue_scheduled)) | 68 | if (atomic_cmpxchg(&device->blk_data.requeue_scheduled, 0, 1) != 0) |
69 | return; | 69 | return; |
70 | schedule_work(&device->blk_data.requeue_task); | 70 | schedule_work(&device->blk_data.requeue_task); |
71 | } | 71 | } |