path: root/security/apparmor/label.c
diff options
authorKirill Tkhai <>2017-09-29 19:06:48 +0300
committerIngo Molnar <>2017-10-10 11:50:16 +0200
commit0dc208b5d5feedc795cbf124539decd182c8e99e (patch)
treebc4102f1c6411748d7570a42f8ff6509306d7ccc /security/apparmor/label.c
parent76f8507f7a6442215df19de74f07eabca2462f1e (diff)
locking/rwsem, fs: Use killable down_read() in iterate_dir()
There was mutex_lock_interruptible() initially, and it was changed to rwsem, but there were not killable rwsem primitives that time. >From commit 9902af79c01a: "The main issue is the lack of down_write_killable(), so the places like readdir.c switched to plain inode_lock(); once killable variants of rwsem primitives appear, that'll be dealt with" Use down_read_killable() same as down_write_killable() in !shared case, as concurrent inode_lock() may take much time, that may be wanted to be interrupted by user. Signed-off-by: Kirill Tkhai <> Signed-off-by: Peter Zijlstra (Intel) <> Cc: Linus Torvalds <> Cc: Peter Zijlstra <> Cc: Thomas Gleixner <> Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'security/apparmor/label.c')
0 files changed, 0 insertions, 0 deletions