diff options
-rw-r--r-- | block/blk-core.c | 3 | ||||
-rw-r--r-- | block/blk-exec.c | 7 | ||||
-rw-r--r-- | include/linux/blkdev.h | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 213e9f01c627..18faa7e81d3b 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -145,7 +145,6 @@ void blk_rq_init(struct request_queue *q, struct request *rq) | |||
145 | rq->cmd = rq->__cmd; | 145 | rq->cmd = rq->__cmd; |
146 | rq->cmd_len = BLK_MAX_CDB; | 146 | rq->cmd_len = BLK_MAX_CDB; |
147 | rq->tag = -1; | 147 | rq->tag = -1; |
148 | rq->ref_count = 1; | ||
149 | rq->start_time = jiffies; | 148 | rq->start_time = jiffies; |
150 | set_start_time_ns(rq); | 149 | set_start_time_ns(rq); |
151 | rq->part = NULL; | 150 | rq->part = NULL; |
@@ -1272,8 +1271,6 @@ void __blk_put_request(struct request_queue *q, struct request *req) | |||
1272 | { | 1271 | { |
1273 | if (unlikely(!q)) | 1272 | if (unlikely(!q)) |
1274 | return; | 1273 | return; |
1275 | if (unlikely(--req->ref_count)) | ||
1276 | return; | ||
1277 | 1274 | ||
1278 | blk_pm_put_request(req); | 1275 | blk_pm_put_request(req); |
1279 | 1276 | ||
diff --git a/block/blk-exec.c b/block/blk-exec.c index ae4f27d7944e..6b18d82d91c5 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c | |||
@@ -24,7 +24,6 @@ static void blk_end_sync_rq(struct request *rq, int error) | |||
24 | struct completion *waiting = rq->end_io_data; | 24 | struct completion *waiting = rq->end_io_data; |
25 | 25 | ||
26 | rq->end_io_data = NULL; | 26 | rq->end_io_data = NULL; |
27 | __blk_put_request(rq->q, rq); | ||
28 | 27 | ||
29 | /* | 28 | /* |
30 | * complete last, if this is a stack request the process (and thus | 29 | * complete last, if this is a stack request the process (and thus |
@@ -103,12 +102,6 @@ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, | |||
103 | int err = 0; | 102 | int err = 0; |
104 | unsigned long hang_check; | 103 | unsigned long hang_check; |
105 | 104 | ||
106 | /* | ||
107 | * we need an extra reference to the request, so we can look at | ||
108 | * it after io completion | ||
109 | */ | ||
110 | rq->ref_count++; | ||
111 | |||
112 | if (!rq->sense) { | 105 | if (!rq->sense) { |
113 | memset(sense, 0, sizeof(sense)); | 106 | memset(sense, 0, sizeof(sense)); |
114 | rq->sense = sense; | 107 | rq->sense = sense; |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f5c7596c93dd..0a8da96274c3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -160,8 +160,6 @@ struct request { | |||
160 | 160 | ||
161 | unsigned short ioprio; | 161 | unsigned short ioprio; |
162 | 162 | ||
163 | int ref_count; | ||
164 | |||
165 | void *special; /* opaque pointer available for LLD use */ | 163 | void *special; /* opaque pointer available for LLD use */ |
166 | char *buffer; /* kaddr of the current segment if available */ | 164 | char *buffer; /* kaddr of the current segment if available */ |
167 | 165 | ||