34,11 → 34,11 |
*/ |
|
/* |
* CVS : $Id: fs.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
* CVS : $Id: fs.h,v 1.2 2002-11-11 08:40:44 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:50 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2002-11-11 08:40:44 $ |
*/ |
|
/*** |
51,6 → 51,7 |
|
#include <fs/types.h> |
#include <fs/mount.h> |
#include <time.h> |
|
#include "mutex.h" |
#include "semaph.h" |
222,10 → 223,13 |
#ifdef SHUTDOWNTIMEOUT |
{ |
int counter; |
struct timespec delay; |
delay.tv_sec=SHUTDOWNSLICE/1000000; |
delay.tv_nsec=(SHUTDOWNSLICE%1000000)*1000; |
counter=0; |
while (counter<SHUTDOWNCOUNTER&&__fs_sem_trywait(&fssyssync)) { |
counter++; |
task_delay(SHUTDOWNSLICE); |
nanosleep(&delay, NULL); |
} |
if (counter>=SHUTDOWNCOUNTER) { |
printk(KERN_NOTICE "filesystem shutdown timeout... aborting!"); |