dm-rq.c (7ed8578a96ad98231d8bf6388f776e034673e18a) | dm-rq.c (412445acb6cad4cef026daae37c4765fb9942c60) |
---|---|
1/* 2 * Copyright (C) 2016 Red Hat, Inc. All rights reserved. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include "dm-core.h" 8#include "dm-rq.h" --- 490 unchanged lines hidden (view full) --- 499 break; 500 case DM_MAPIO_REQUEUE: 501 /* The target wants to requeue the I/O */ 502 break; 503 case DM_MAPIO_DELAY_REQUEUE: 504 /* The target wants to requeue the I/O after a delay */ 505 dm_requeue_original_request(tio, true); 506 break; | 1/* 2 * Copyright (C) 2016 Red Hat, Inc. All rights reserved. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include "dm-core.h" 8#include "dm-rq.h" --- 490 unchanged lines hidden (view full) --- 499 break; 500 case DM_MAPIO_REQUEUE: 501 /* The target wants to requeue the I/O */ 502 break; 503 case DM_MAPIO_DELAY_REQUEUE: 504 /* The target wants to requeue the I/O after a delay */ 505 dm_requeue_original_request(tio, true); 506 break; |
507 default: 508 if (r > 0) { 509 DMWARN("unimplemented target map return value: %d", r); 510 BUG(); 511 } 512 | 507 case DM_MAPIO_KILL: |
513 /* The target wants to complete the I/O */ | 508 /* The target wants to complete the I/O */ |
514 dm_kill_unmapped_request(rq, r); | 509 dm_kill_unmapped_request(rq, -EIO); 510 default: 511 DMWARN("unimplemented target map return value: %d", r); 512 BUG(); |
515 } 516 517 return r; 518} 519 520static void dm_start_request(struct mapped_device *md, struct request *orig) 521{ 522 if (!orig->q->mq_ops) --- 333 unchanged lines hidden --- | 513 } 514 515 return r; 516} 517 518static void dm_start_request(struct mapped_device *md, struct request *orig) 519{ 520 if (!orig->q->mq_ops) --- 333 unchanged lines hidden --- |