floppy: switch from req->errors to req->error_count
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
e26738e037
commit
4590879596
@ -2805,8 +2805,10 @@ static int set_next_request(void)
|
|||||||
fdc_queue = 0;
|
fdc_queue = 0;
|
||||||
if (q) {
|
if (q) {
|
||||||
current_req = blk_fetch_request(q);
|
current_req = blk_fetch_request(q);
|
||||||
if (current_req)
|
if (current_req) {
|
||||||
|
current_req->error_count = 0;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} while (fdc_queue != old_pos);
|
} while (fdc_queue != old_pos);
|
||||||
|
|
||||||
@ -2866,7 +2868,7 @@ do_request:
|
|||||||
_floppy = floppy_type + DP->autodetect[DRS->probed_format];
|
_floppy = floppy_type + DP->autodetect[DRS->probed_format];
|
||||||
} else
|
} else
|
||||||
probing = 0;
|
probing = 0;
|
||||||
errors = &(current_req->errors);
|
errors = &(current_req->error_count);
|
||||||
tmp = make_raw_rw_request();
|
tmp = make_raw_rw_request();
|
||||||
if (tmp < 2) {
|
if (tmp < 2) {
|
||||||
request_done(tmp);
|
request_done(tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user