diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2011-02-07 11:12:15 -0500 |
---|---|---|
committer | Boaz Harrosh <bharrosh@panasas.com> | 2011-03-15 09:02:52 -0400 |
commit | a49fb4c3d035ab516507b31ec3bd49263caee14d (patch) | |
tree | aa44d448190dacad75b30fe86c49a72ad9cecc0d /fs/exofs/super.c | |
parent | 1cea312ad49d9cb964179a784fedb1fcfe396283 (diff) |
exofs: deprecate the commands pending counter
One leftover from the days of IBM's original code, is an SB counter
that counts in-flight asynchronous commands. And a piece of code that
waits for the counter to reach zero at unmount. I guess it might have
been needed then, cause of some reference missing or something.
I'm not removing it yet but am putting a warning message if ever this
counter triggers at unmount. If I'll never see it triggers or reported
I'll remove the counter for good.
(I had this print as a debug output for a long time and never had it
trigger)
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs/super.c')
-rw-r--r-- | fs/exofs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/exofs/super.c b/fs/exofs/super.c index 5eb0851e5481..06065bd37fc3 100644 --- a/fs/exofs/super.c +++ b/fs/exofs/super.c | |||
@@ -409,6 +409,10 @@ static void exofs_put_super(struct super_block *sb) | |||
409 | for (num_pend = atomic_read(&sbi->s_curr_pending); num_pend > 0; | 409 | for (num_pend = atomic_read(&sbi->s_curr_pending); num_pend > 0; |
410 | num_pend = atomic_read(&sbi->s_curr_pending)) { | 410 | num_pend = atomic_read(&sbi->s_curr_pending)) { |
411 | wait_queue_head_t wq; | 411 | wait_queue_head_t wq; |
412 | |||
413 | printk(KERN_NOTICE "%s: !!Pending operations in flight. " | ||
414 | "This is a BUG. please report to osd-dev@open-osd.org\n", | ||
415 | __func__); | ||
412 | init_waitqueue_head(&wq); | 416 | init_waitqueue_head(&wq); |
413 | wait_event_timeout(wq, | 417 | wait_event_timeout(wq, |
414 | (atomic_read(&sbi->s_curr_pending) == 0), | 418 | (atomic_read(&sbi->s_curr_pending) == 0), |