Source
2223
2223
/* We're done with the request */
2224
2224
floppy_off(drive);
2225
2225
current_req = NULL;
2226
2226
}
2227
2227
2228
2228
/* new request_done. Can handle physical sectors which are smaller than a
2229
2229
* logical buffer */
2230
2230
static void request_done(int uptodate)
2231
2231
{
2232
2232
struct request *req = current_req;
2233
-
struct request_queue *q;
2234
2233
int block;
2235
2234
char msg[sizeof("request done ") + sizeof(int) * 3];
2236
2235
2237
2236
probing = 0;
2238
2237
snprintf(msg, sizeof(msg), "request done %d", uptodate);
2239
2238
reschedule_timeout(MAXTIMEOUT, msg);
2240
2239
2241
2240
if (!req) {
2242
2241
pr_info("floppy.c: no request in request_done\n");
2243
2242
return;
2244
2243
}
2245
2244
2246
-
q = req->q;
2247
-
2248
2245
if (uptodate) {
2249
2246
/* maintain values for invalidation on geometry
2250
2247
* change */
2251
2248
block = current_count_sectors + blk_rq_pos(req);
2252
2249
INFBOUND(DRS->maxblock, block);
2253
2250
if (block > _floppy->sect)
2254
2251
DRS->maxtrack = 1;
2255
2252
2256
2253
floppy_end_request(req, 0);
2257
2254
} else {