diff options
-rw-r--r-- | block/ll_rw_blk.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index a15845c164f2..cd20367061d7 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -1075,12 +1075,6 @@ void blk_queue_end_tag(struct request_queue *q, struct request *rq) | |||
1075 | */ | 1075 | */ |
1076 | return; | 1076 | return; |
1077 | 1077 | ||
1078 | if (unlikely(!__test_and_clear_bit(tag, bqt->tag_map))) { | ||
1079 | printk(KERN_ERR "%s: attempt to clear non-busy tag (%d)\n", | ||
1080 | __FUNCTION__, tag); | ||
1081 | return; | ||
1082 | } | ||
1083 | |||
1084 | list_del_init(&rq->queuelist); | 1078 | list_del_init(&rq->queuelist); |
1085 | rq->cmd_flags &= ~REQ_QUEUED; | 1079 | rq->cmd_flags &= ~REQ_QUEUED; |
1086 | rq->tag = -1; | 1080 | rq->tag = -1; |
@@ -1090,6 +1084,13 @@ void blk_queue_end_tag(struct request_queue *q, struct request *rq) | |||
1090 | __FUNCTION__, tag); | 1084 | __FUNCTION__, tag); |
1091 | 1085 | ||
1092 | bqt->tag_index[tag] = NULL; | 1086 | bqt->tag_index[tag] = NULL; |
1087 | |||
1088 | if (unlikely(!test_and_clear_bit(tag, bqt->tag_map))) { | ||
1089 | printk(KERN_ERR "%s: attempt to clear non-busy tag (%d)\n", | ||
1090 | __FUNCTION__, tag); | ||
1091 | return; | ||
1092 | } | ||
1093 | |||
1093 | bqt->busy--; | 1094 | bqt->busy--; |
1094 | } | 1095 | } |
1095 | 1096 | ||