Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254093
b: refs/heads/master
c: d09408a
h: refs/heads/master
i:
  254091: 25e76b4
v: v3
  • Loading branch information
Adrian Hunter authored and Chris Ball committed Jun 25, 2011
1 parent 8869dad commit 744b4bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 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: 4cf8c6dd2e261da94b87c4deadcc136ab022b6ac
refs/heads/master: d09408ade08a08a710a247fb52aa50101e73ebf7
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
INIT_LIST_HEAD(&md->part);
md->usage = 1;

ret = mmc_init_queue(&md->queue, card, &md->lock);
ret = mmc_init_queue(&md->queue, card, &md->lock, subname);
if (ret)
goto err_putdisk;

Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/mmc/card/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ static void mmc_request(struct request_queue *q)
* @mq: mmc queue
* @card: mmc card to attach this queue
* @lock: queue lock
* @subname: partition subname
*
* Initialise a MMC card request queue.
*/
int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock)
int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card,
spinlock_t *lock, const char *subname)
{
struct mmc_host *host = card->host;
u64 limit = BLK_BOUNCE_HIGH;
Expand Down Expand Up @@ -209,8 +211,8 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock

sema_init(&mq->thread_sem, 1);

mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd/%d",
host->index);
mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd/%d%s",
host->index, subname ? subname : "");

if (IS_ERR(mq->thread)) {
ret = PTR_ERR(mq->thread);
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/mmc/card/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ struct mmc_queue {
unsigned int bounce_sg_len;
};

extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *);
extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *,
const char *);
extern void mmc_cleanup_queue(struct mmc_queue *);
extern void mmc_queue_suspend(struct mmc_queue *);
extern void mmc_queue_resume(struct mmc_queue *);
Expand Down

0 comments on commit 744b4bd

Please sign in to comment.