Skip to contentSkip to conversation

vfs: remove a redundant might_sleep in wait_on_inode

PATCH Applied Mateusz Guzik 2 participants 2 messages Nov 4, 2023 – Nov 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfs: remove a redundant might_sleep in wait_on_inode

wait_on_bit already does it.

---
 include/linux/writeback.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/writeback.h +0 -1
index 083387c00f0c..6d0a14f7019d 100644
@@ -193,7 +193,6 @@ void inode_io_list_del(struct inode *inode);
 /* writeback.h requires fs.h; it, too, is not included from here. */
 static inline void wait_on_inode(struct inode *inode)
 {
-	might_sleep();
 	wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE);
 }
 
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Mateusz Guzik

wait_on_bit already does it.

Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] vfs: remove a redundant might_sleep in wait_on_inode

      https://git.kernel.org/vfs/vfs/c/357196038a51