[PATCH] Remove ->rq_status from struct request
After Christophs SCSI change, the only usage left is RQ_ACTIVE and RQ_INACTIVE. The block layer sets RQ_INACTIVE right before freeing the request, so any check for RQ_INACTIVE in a driver is a bug and indicates use-after-free. So kill/clean the remaining users, straight forward. Signed-off-by: Jens Axboe <axboe@suse.de>
Este commit está contenido en:
@@ -1281,8 +1281,7 @@ static ide_startstop_t idefloppy_do_request (ide_drive_t *drive, struct request
|
||||
idefloppy_pc_t *pc;
|
||||
unsigned long block = (unsigned long)block_s;
|
||||
|
||||
debug_log(KERN_INFO "rq_status: %d, dev: %s, flags: %lx, errors: %d\n",
|
||||
rq->rq_status,
|
||||
debug_log(KERN_INFO "dev: %s, flags: %lx, errors: %d\n",
|
||||
rq->rq_disk ? rq->rq_disk->disk_name : "?",
|
||||
rq->flags, rq->errors);
|
||||
debug_log(KERN_INFO "sector: %ld, nr_sectors: %ld, "
|
||||
|
Referencia en una nueva incidencia
Block a user