[PATCH 10/11] list_lru: don't need node lock in list_lru_count_node

2013-07-30 Thread Dave Chinner
From: Dave Chinner The overall count of objects on a node might be accurate, but the moment it is returned to the caller it is no longer perfectly accurate. Hence we don't really need to hold the node lock to protect the read of the object. The count is a long, so can be read atomically on all

[PATCH 10/11] list_lru: don't need node lock in list_lru_count_node

2013-07-30 Thread Dave Chinner
From: Dave Chinner dchin...@redhat.com The overall count of objects on a node might be accurate, but the moment it is returned to the caller it is no longer perfectly accurate. Hence we don't really need to hold the node lock to protect the read of the object. The count is a long, so can be read