ploop: Clear abort bit on replace delta

Submitted by Kirill Tkhai on April 17, 2019, 11:54 a.m.

Details

Message ID 155550206128.27110.17861926472926857012.stgit@localhost.localdomain
State New
Series "ploop: Clear abort bit on replace delta"
Headers show

Commit Message

Kirill Tkhai April 17, 2019, 11:54 a.m.
New delta should perform IO well, so clear the bit
to allow bio handling.

https://pmc.acronis.com/browse/VSTOR-22414

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 drivers/block/ploop/dev.c |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index 8d93a2a861bd..7d4e5f2f8d38 100644
--- a/drivers/block/ploop/dev.c
+++ b/drivers/block/ploop/dev.c
@@ -3398,6 +3398,7 @@  static int ploop_replace_delta(struct ploop_device * plo, unsigned long arg)
 	ploop_quiesce(plo);
 	ploop_map_destroy(&plo->map);
 	list_replace_init(&old_delta->list, &delta->list);
+	clear_bit(PLOOP_S_ABORT, &plo->state);
 
 	spin_lock_irq(plo->queue->queue_lock);
 	queue_flag_clear(QUEUE_FLAG_STANDBY, plo->queue);

Comments

Andrey Zaitsev April 17, 2019, 1:18 p.m.
ok for me

17.04.2019 14:54, Kirill Tkhai пишет:
> New delta should perform IO well, so clear the bit
> to allow bio handling.
>
> https://pmc.acronis.com/browse/VSTOR-22414
>
> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
> ---
>   drivers/block/ploop/dev.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
> index 8d93a2a861bd..7d4e5f2f8d38 100644
> --- a/drivers/block/ploop/dev.c
> +++ b/drivers/block/ploop/dev.c
> @@ -3398,6 +3398,7 @@ static int ploop_replace_delta(struct ploop_device * plo, unsigned long arg)
>   	ploop_quiesce(plo);
>   	ploop_map_destroy(&plo->map);
>   	list_replace_init(&old_delta->list, &delta->list);
> +	clear_bit(PLOOP_S_ABORT, &plo->state);
>   
>   	spin_lock_irq(plo->queue->queue_lock);
>   	queue_flag_clear(QUEUE_FLAG_STANDBY, plo->queue);
>