diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifsfs.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 877095a1192a..682b0235ad9a 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -405,6 +405,7 @@ static struct quotactl_ops cifs_quotactl_ops = { | |||
405 | }; | 405 | }; |
406 | #endif | 406 | #endif |
407 | 407 | ||
408 | #ifdef CONFIG_CIFS_EXPERIMENTAL | ||
408 | static void cifs_umount_begin(struct super_block * sblock) | 409 | static void cifs_umount_begin(struct super_block * sblock) |
409 | { | 410 | { |
410 | struct cifs_sb_info *cifs_sb; | 411 | struct cifs_sb_info *cifs_sb; |
@@ -422,16 +423,18 @@ static void cifs_umount_begin(struct super_block * sblock) | |||
422 | tcon->tidStatus = CifsExiting; | 423 | tcon->tidStatus = CifsExiting; |
423 | up(&tcon->tconSem); | 424 | up(&tcon->tconSem); |
424 | 425 | ||
426 | /* cancel_brl_requests(tcon); */ | ||
427 | /* cancel_notify_requests(tcon); */ | ||
425 | if(tcon->ses && tcon->ses->server) | 428 | if(tcon->ses && tcon->ses->server) |
426 | { | 429 | { |
427 | cERROR(1,("wake up tasks now - umount begin not complete")); | 430 | cFYI(1,("wake up tasks now - umount begin not complete")); |
428 | wake_up_all(&tcon->ses->server->request_q); | 431 | wake_up_all(&tcon->ses->server->request_q); |
429 | } | 432 | } |
430 | /* BB FIXME - finish add checks for tidStatus BB */ | 433 | /* BB FIXME - finish add checks for tidStatus BB */ |
431 | 434 | ||
432 | return; | 435 | return; |
433 | } | 436 | } |
434 | 437 | #endif | |
435 | 438 | ||
436 | static int cifs_remount(struct super_block *sb, int *flags, char *data) | 439 | static int cifs_remount(struct super_block *sb, int *flags, char *data) |
437 | { | 440 | { |
@@ -450,7 +453,9 @@ struct super_operations cifs_super_ops = { | |||
450 | unless later we add lazy close of inodes or unless the kernel forgets to call | 453 | unless later we add lazy close of inodes or unless the kernel forgets to call |
451 | us with the same number of releases (closes) as opens */ | 454 | us with the same number of releases (closes) as opens */ |
452 | .show_options = cifs_show_options, | 455 | .show_options = cifs_show_options, |
453 | /* .umount_begin = cifs_umount_begin, */ /* BB finish in the future */ | 456 | #ifdef CONFIG_CIFS_EXPERIMENTAL |
457 | .umount_begin = cifs_umount_begin, | ||
458 | #endif | ||
454 | .remount_fs = cifs_remount, | 459 | .remount_fs = cifs_remount, |
455 | }; | 460 | }; |
456 | 461 | ||