Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187146
b: refs/heads/master
c: 73507e6
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Mar 12, 2010
1 parent 7cd82b6 commit 52100e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: 0da3132f90c01f532dd85c537b5c78a196a11e24
refs/heads/master: 73507e6cd8dc6cd98a39164a9b775c7092faddb4
22 changes: 12 additions & 10 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static int output_log_pos;
#define current_reqD -1
#define MAXTIMEOUT -2

static void __reschedule_timeout(int drive, const char *message, int marg)
static void __reschedule_timeout(int drive, const char *message)
{
if (drive == current_reqD)
drive = current_drive;
Expand All @@ -680,16 +680,16 @@ static void __reschedule_timeout(int drive, const char *message, int marg)
fd_timeout.expires = jiffies + UDP->timeout;
add_timer(&fd_timeout);
if (UDP->flags & FD_DEBUG)
DPRINT("reschedule timeout %s %d\n", message, marg);
DPRINT("reschedule timeout %s\n", message);
timeout_message = message;
}

static void reschedule_timeout(int drive, const char *message, int marg)
static void reschedule_timeout(int drive, const char *message)
{
unsigned long flags;

spin_lock_irqsave(&floppy_lock, flags);
__reschedule_timeout(drive, message, marg);
__reschedule_timeout(drive, message);
spin_unlock_irqrestore(&floppy_lock, flags);
}

Expand Down Expand Up @@ -900,7 +900,7 @@ static int _lock_fdc(int drive, bool interruptible, int line)
}
command_status = FD_COMMAND_NONE;

__reschedule_timeout(drive, "lock fdc", 0);
__reschedule_timeout(drive, "lock fdc");
set_fdc(drive);
return 0;
}
Expand Down Expand Up @@ -1983,7 +1983,7 @@ static void floppy_ready(void)

static void floppy_start(void)
{
reschedule_timeout(current_reqD, "floppy start", 0);
reschedule_timeout(current_reqD, "floppy start");

scandrives();
debug_dcl(DP->flags, "setting NEWCHANGE in floppy_start\n");
Expand All @@ -2007,7 +2007,7 @@ static void floppy_start(void)

static void do_wakeup(void)
{
reschedule_timeout(MAXTIMEOUT, "do wakeup", 0);
reschedule_timeout(MAXTIMEOUT, "do wakeup");
cont = NULL;
command_status += 2;
wake_up(&command_done);
Expand Down Expand Up @@ -2306,9 +2306,11 @@ static void request_done(int uptodate)
struct request *req = current_req;
unsigned long flags;
int block;
char msg[sizeof("request done ") + sizeof(int) * 3];

probing = 0;
reschedule_timeout(MAXTIMEOUT, "request done", uptodate);
snprintf(msg, sizeof(msg), "request done %d", uptodate);
reschedule_timeout(MAXTIMEOUT, msg);

if (!req) {
pr_info("floppy.c: no request in request_done\n");
Expand Down Expand Up @@ -2908,7 +2910,7 @@ static void redo_fd_request(void)
}
drive = (long)current_req->rq_disk->private_data;
set_fdc(drive);
reschedule_timeout(current_reqD, "redo fd request", 0);
reschedule_timeout(current_reqD, "redo fd request");

set_floppy(drive);
raw_cmd = &default_raw_cmd;
Expand Down Expand Up @@ -4254,7 +4256,7 @@ static int __init floppy_init(void)
else
floppy_sizes[i] = MAX_DISK_SIZE << 1;

reschedule_timeout(MAXTIMEOUT, "floppy init", MAXTIMEOUT);
reschedule_timeout(MAXTIMEOUT, "floppy init");
config_types();

for (i = 0; i < N_FDC; i++) {
Expand Down

0 comments on commit 52100e5

Please sign in to comment.