projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4733fd3
)
mg_disk: remove prohibited sleep operation
author
unsik Kim
<donari75@gmail.com>
Tue, 28 Jul 2009 06:52:06 +0000
(08:52 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 28 Jul 2009 06:52:06 +0000
(08:52 +0200)
mflash's polling driver operate in standard request_fn_proc's context,
sleep in this isn't permitted.
Signed-off-by: unsik Kim <donari75@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/mg_disk.c
patch
|
blob
|
history
diff --git
a/drivers/block/mg_disk.c
b/drivers/block/mg_disk.c
index f703f54782469e2ae9491cbd6d6dd89708fb8a55..5b120eab2baa16c09b26ccc3f276ab638e9c60d9 100644
(file)
--- a/
drivers/block/mg_disk.c
+++ b/
drivers/block/mg_disk.c
@@
-245,8
+245,6
@@
static unsigned int mg_wait(struct mg_host *host, u32 expect, u32 msec)
mg_dump_status("not ready", status, host);
return MG_ERR_INV_STAT;
}
- if (prv_data->use_polling)
- msleep(1);
status = inb((unsigned long)host->dev_base + MG_REG_STATUS);
} while (time_before(cur_jiffies, expire));