]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Remove ui_mutex in ubifs_xattr_get and change_xattr
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 31 May 2021 12:52:10 +0000 (20:52 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 18 Jun 2021 20:04:47 +0000 (22:04 +0200)
commitf914f0589a2290a4d8097edcee109c09db394a4c
treee166d92ee91054e6ca012ee90d9ce8b33ef4f070
parent1f5e05c44a97bf428893e031fb89b52134ba2191
ubifs: Remove ui_mutex in ubifs_xattr_get and change_xattr

Since ubifs_xattr_get and ubifs_xattr_set cannot being executed
parallelly after importing @host_ui->xattr_sem, now we can remove
ui_mutex imported by commit 9789daae1b0833b ("ubifs: make
ubifs_[get|set]xattr atomic").

@xattr_size, @xattr_names and @xattr_cnt can't be out of protection
by @host_ui->mutex yet, they are sill accesed in other places, such as
pack_inode() called by ubifs_write_inode() triggered by page-writeback.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/xattr.c