[Devel] [PATCH RHEL8 COMMIT] ploop: Underline this is on stack completions
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Aug 5 18:32:02 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.2
------>
commit 32dbf88a81c1e3e26bc1ab2b8bc955835b2467f6
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Thu Aug 5 18:32:02 2021 +0300
ploop: Underline this is on stack completions
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