OSDN Git Service

Merge branch 'for-3.16/core' into for-3.16/drivers
authorJens Axboe <axboe@fb.com>
Fri, 30 May 2014 14:11:50 +0000 (08:11 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 30 May 2014 14:11:50 +0000 (08:11 -0600)
Pulled in for the blk_mq_tag_to_rq() change, which impacts
mtip32xx.

Signed-off-by: Jens Axboe <axboe@fb.com>
1  2 
drivers/block/mtip32xx/mtip32xx.c
include/linux/blkdev.h

@@@ -188,22 -214,19 +188,20 @@@ static void mtip_put_int_command(struc
  }
  
  /*
 - * Release a command slot.
 - *
 - * @port Pointer to the port data structure.
 - * @tag  Tag of command to release
 - *
 - * return value
 - *    None
 + * Once we add support for one hctx per mtip group, this will change a bit
   */
 -static inline void release_slot(struct mtip_port *port, int tag)
 +static struct request *mtip_rq_from_tag(struct driver_data *dd,
 +                                      unsigned int tag)
 +{
-       struct blk_mq_hw_ctx *hctx = dd->queue->queue_hw_ctx[0];
-       return blk_mq_tag_to_rq(hctx->tags, tag);
++      return blk_mq_tag_to_rq(dd->queue->queue_hw_ctx[0], tag);
 +}
 +
 +static struct mtip_cmd *mtip_cmd_from_tag(struct driver_data *dd,
 +                                        unsigned int tag)
  {
 -      smp_mb__before_clear_bit();
 -      clear_bit(tag, port->allocated);
 -      smp_mb__after_clear_bit();
 +      struct request *rq = mtip_rq_from_tag(dd, tag);
 +
 +      return blk_mq_rq_to_pdu(rq);
  }
  
  /*
Simple merge