From: huanghua Date: Thu, 4 Dec 2008 00:27:10 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_120~20 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b22bca7272957766fa32daf6460f32e315d741ee;p=fs%2Flustre-release.git Branch HEAD b=17589 revert the previous patch, rejected by alexey.lyashkov. --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 2ed0051..3c0c61b 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1958,16 +1958,9 @@ void ll_umount_begin(struct super_block *sb) /* Really, we'd like to wait until there are no requests outstanding, * and then continue. For now, we just invalidate the requests, - * sleep 1 second, and hope it is OK. + * schedule(), and hope. */ - if (atomic_read(&vfsmnt->mnt_count) > 2) { - cfs_schedule_timeout(CFS_TASK_INTERRUPTIBLE, - cfs_time_seconds(1)); - if (atomic_read(&vfsmnt->mnt_count) > 2) - LCONSOLE_WARN("Mount still busy with %d refs! You " - "may try to umount it a bit later\n", - atomic_read(&vfsmnt->mnt_count)); - } + schedule(); EXIT; }