~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to block/blk-exec.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
{
51
51
        int where = at_head ? ELEVATOR_INSERT_FRONT : ELEVATOR_INSERT_BACK;
52
52
 
 
53
        if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags))) {
 
54
                rq->errors = -ENXIO;
 
55
                if (rq->end_io)
 
56
                        rq->end_io(rq, rq->errors);
 
57
                return;
 
58
        }
 
59
 
53
60
        rq->rq_disk = bd_disk;
54
61
        rq->end_io = done;
55
62
        WARN_ON(irqs_disabled());
56
63
        spin_lock_irq(q->queue_lock);
57
64
        __elv_add_request(q, rq, where);
58
65
        __blk_run_queue(q);
59
 
        /* the queue is stopped so it won't be plugged+unplugged */
 
66
        /* the queue is stopped so it won't be run */
60
67
        if (rq->cmd_type == REQ_TYPE_PM_RESUME)
61
68
                q->request_fn(q);
62
69
        spin_unlock_irq(q->queue_lock);