2008-07-14 09:06:40

by Tao Ma

[permalink] [raw]
Subject: Why there is no mutex_lock in vfs_getxattr.

Hi all,
When we use vfs_setxattr we call mutex_lock(&inode->i_mutex) to lock
the inode. Then why there is no mutex_lock in vfs_getxattr? Is there any
reason for it? And how can I prevent getting the stale xattr if set/get
happen in the same time? Just let the actual file system implement it
by itself?

Regards,
Tao