Add leases to track the cached root filehandle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve, Pavel

Please find a patch that adds read leases to track when the cached root
handle is valid and when it has been changed.
When we receive a lease break for the handle we just set a flag for this handle
from the context of the demultiplex thread.
Later, on the next call to open_shroot() we check this flag and close the
handle is it is set follower by re-opening the root handle anew and getting a
new lease.

This is an incremental change that works for the root handle since we will
be calling open_shroot() frequently for it.

For an incremental future change maybe we should also have a dedicated thread
that will regularely traverse and close any cached handles we have when the
flag to indicate the lease is broken has been set.


With this patch we no longer need 83b1ab5f2a7f56d6e767c076b9dffa7783d49fe8
from for-next so oyu can revert that patch.


--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux