[Devel] [PATCH RH8 4/5] ploop: Underline this is on stack completions

Kirill Tkhai ktkhai at virtuozzo.com
Wed Jul 21 19:00:30 MSK 2021


Lockdep wants this.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-cmd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index d4dc3746ec29..41c3996e6b38 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -209,7 +209,7 @@ static void wake_completion(struct pio *pio, void *data, blk_status_t status)
 static int ploop_read_cluster_sync(struct ploop *ploop, struct pio *pio,
 				   u32 dst_clu)
 {
-	DECLARE_COMPLETION(completion);
+	DECLARE_COMPLETION_ONSTACK(completion);
 
 	init_pio(ploop, REQ_OP_READ, pio);
 	pio_prepare_offsets(ploop, pio, dst_clu);
@@ -230,7 +230,7 @@ static int ploop_write_cluster_sync(struct ploop *ploop, struct pio *pio,
 				    u32 dst_clu)
 {
 	struct file *file = top_delta(ploop)->file;
-	DECLARE_COMPLETION(completion);
+	DECLARE_COMPLETION_ONSTACK(completion);
 	int ret;
 
 	ret = vfs_fsync(file, 0);




More information about the Devel mailing list