* [PATCH] vfs: remove a redundant might_sleep in wait_on_inode
@ 2023-11-04 22:11 Mateusz Guzik
2023-11-06 9:45 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Mateusz Guzik @ 2023-11-04 22:11 UTC (permalink / raw)
To: brauner; +Cc: linux-kernel, linux-fsdevel, Mateusz Guzik
wait_on_bit already does it.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
---
include/linux/writeback.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index 083387c00f0c..6d0a14f7019d 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -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);
}
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] vfs: remove a redundant might_sleep in wait_on_inode
2023-11-04 22:11 [PATCH] vfs: remove a redundant might_sleep in wait_on_inode Mateusz Guzik
@ 2023-11-06 9:45 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2023-11-06 9:45 UTC (permalink / raw)
To: Mateusz Guzik; +Cc: Christian Brauner, linux-kernel, linux-fsdevel
On Sat, 04 Nov 2023 23:11:17 +0100, Mateusz Guzik wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-06 9:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-04 22:11 [PATCH] vfs: remove a redundant might_sleep in wait_on_inode Mateusz Guzik
2023-11-06 9:45 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox