Re: [PATCH 2/2] block: unify flags for struct bio and struct request

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

 



On 2010-06-18 09:47, Christoph Hellwig wrote:
> Index: linux-2.6/drivers/md/dm.c
> ===================================================================
> --- linux-2.6.orig/drivers/md/dm.c	2010-06-17 13:21:19.000000000 +0200
> +++ linux-2.6/drivers/md/dm.c	2010-06-17 13:22:15.631255880 +0200
> @@ -1301,7 +1301,7 @@ static void __split_and_process_bio(stru
>  
>  	ci.map = dm_get_live_table(md);
>  	if (unlikely(!ci.map)) {
> -		if (!bio_rw_flagged(bio, BIO_RW_BARRIER))
> +		if (!bio->bi_rw & REQ_HARDBARRIER)
>  			bio_io_error(bio);
>  		else
>  			if (!md->barrier_error)

That's not good either.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux