Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101207
b: refs/heads/master
c: d79c5a6
h: refs/heads/master
i:
  101205: e04cf65
  101203: a0128bc
  101199: fd79583
v: v3
  • Loading branch information
FUJITA Tomonori authored and Bartlomiej Zolnierkiewicz committed Jul 15, 2008
1 parent 6f5d6dd commit a3c2a2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed820f19521de246c5b7978f8f78290733a55b20
refs/heads/master: d79c5a670ddf076a346ddcf3d9e21785ecab963f
20 changes: 9 additions & 11 deletions trunk/drivers/block/paride/pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,19 +712,17 @@ static void do_pd_request(struct request_queue * q)
static int pd_special_command(struct pd_unit *disk,
enum action (*func)(struct pd_unit *disk))
{
DECLARE_COMPLETION_ONSTACK(wait);
struct request rq;
struct request *rq;
int err = 0;

blk_rq_init(NULL, &rq);
rq.rq_disk = disk->gd;
rq.end_io_data = &wait;
rq.end_io = blk_end_sync_rq;
blk_insert_request(disk->gd->queue, &rq, 0, func);
wait_for_completion(&wait);
if (rq.errors)
err = -EIO;
blk_put_request(&rq);
rq = blk_get_request(disk->gd->queue, READ, __GFP_WAIT);

rq->cmd_type = REQ_TYPE_SPECIAL;
rq->special = func;

err = blk_execute_rq(disk->gd->queue, disk->gd, rq, 0);

blk_put_request(rq);
return err;
}

Expand Down

0 comments on commit a3c2a2b

Please sign in to comment.