Re: [PATCH] dm writecache: handle REQ_FUA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-By: Mikulas Patocka <mpatocka@xxxxxxxxxx>

	Also add this line, so that it gets backported:

Cc: stable@xxxxxxxxxxxxxxx	# 4.18+

On Wed, 23 Oct 2019, Maged Mokhtar wrote:

> Call writecache_flush() on REQ_FUA.
> 
> Signed-off-by: Maged Mokhtar <mmokhtar@xxxxxxxxxxx>
> ---
>  drivers/md/dm-writecache.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> --- a/drivers/md/dm-writecache.c	2019-10-23 22:01:18.480115962 +0200
> +++ b/drivers/md/dm-writecache.c	2019-10-23 22:02:08.616113729 +0200
> @@ -1218,7 +1218,8 @@ bio_copy:
>  			}
>  		} while (bio->bi_iter.bi_size);
> 
> -		if (unlikely(wc->uncommitted_blocks >= wc->autocommit_blocks))
> +		if (unlikely(bio->bi_opf & REQ_FUA ||
> +				wc->uncommitted_blocks >=
> wc->autocommit_blocks))
>  			writecache_flush(wc);
>  		else
>  			writecache_schedule_autocommit(wc);
> 

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux