Whamcloud - gitweb
Some last b_size work:
authorphil <phil>
Thu, 19 Feb 2004 15:55:41 +0000 (15:55 +0000)
committerphil <phil>
Thu, 19 Feb 2004 15:55:41 +0000 (15:55 +0000)
commit9ea6f360aa9caaad3231c1607293ca3611e9a3cd
tree8b06193e3797e56259af6ce93d8d2937cfef62ff
parent69117fe77a14173da040201284d40b1b901b2589
Some last b_size work:

- use the KMS in prepare_write
- remove now-useless ll_extent_lock_no_validate
- I noticed that lookup_it_finish still took whole-file locks when a getattr
  comes in through lookup instead of revalidate; fixed.

- record the last time a lock was used: lock->l_last_used
- if we see a glimpse callback for a lock that hasn't been used in 10 seconds,
  call both the glimpse and blocking AST callbacks

Repeated "ls -l /mnt/lustre/foo" then leads to:

[Write a file]
First ls, inode instantiation and glimpsing: 118 debug-log lines
[10 seconds pass]
Second ls, glimpse runs and blocking ast runs: 75 debug-log lines
Third ls, glimpse runs and returns a lock: 40 debug-log lines
Fourth ls, glimpse matches local lock: 19 debug-log lines

This can be condensed somewhat when "instant cancellation" is possible
for locks with no outstanding dirty pages to writeback.
lustre/llite/llite_close.c