Skip to content

Commit

Permalink
mg_disk: remove prohibited sleep operation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
unsik Kim authored and Jens Axboe committed Jul 28, 2009
1 parent 4733fd3 commit 48f5690
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/block/mg_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 48f5690

Please sign in to comment.