[PATCH] Split struct request ->flags into two parts
Right now ->flags is a bit of a mess: some are request types, and others are just modifiers. Clean this up by splitting it into ->cmd_type and ->cmd_flags. This allows introduction of generic Linux block message types, useful for sending generic Linux commands to block devices. Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
@ -390,9 +390,9 @@ static int i2o_block_prep_req_fn(struct request_queue *q, struct request *req)
|
||||
}
|
||||
|
||||
/* request is already processed by us, so return */
|
||||
if (req->flags & REQ_SPECIAL) {
|
||||
if (blk_special_request(req)) {
|
||||
osm_debug("REQ_SPECIAL already set!\n");
|
||||
req->flags |= REQ_DONTPREP;
|
||||
req->cmd_flags |= REQ_DONTPREP;
|
||||
return BLKPREP_OK;
|
||||
}
|
||||
|
||||
@ -411,7 +411,8 @@ static int i2o_block_prep_req_fn(struct request_queue *q, struct request *req)
|
||||
ireq = req->special;
|
||||
|
||||
/* do not come back here */
|
||||
req->flags |= REQ_DONTPREP | REQ_SPECIAL;
|
||||
req->cmd_type = REQ_TYPE_SPECIAL;
|
||||
req->cmd_flags |= REQ_DONTPREP;
|
||||
|
||||
return BLKPREP_OK;
|
||||
};
|
||||
|
Reference in New Issue
Block a user