Lockdep wants this.

Signed-off-by: Kirill Tkhai <[email protected]>
---
 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);


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to