|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance	discard support
 
>>> On 11.10.11 at 22:57, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
> --- a/drivers/block/xen-blkfront.c
> +++ b/drivers/block/xen-blkfront.c
>...
> @@ -705,7 +711,7 @@ static void blkif_free(struct blkfront_info *info, int 
> suspend)
>  static void blkif_completion(struct blk_shadow *s)
>  {
>       int i;
This function gets called for all types of requests, and hence must filter
discard ones now that what would be nr_segments can be non-zero,
e.g.
        if (s->req.operation == BLKIF_OP_DISCARD)
                return;
Jan
> -     for (i = 0; i < s->req.nr_segments; i++)
> +     for (i = 0; i < s->req.u1.nr_segments; i++)
>               gnttab_end_foreign_access(s->req.u.rw.seg[i].gref, 0, 0UL);
>  }
>  
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., (continued)
- Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Ian Campbell
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance	discard support with secure erasing support., Jan Beulich
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance	 discard	support with secure erasing support., Ian Campbell
 
- Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Ian Campbell
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Ian Campbell
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 
    
- Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance	discard support with secure erasing support.,
Jan Beulich <=
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 
- Message not available
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Li Dongyang
 - Re: [Xen-devel] [PATCH 3/3] xen/blk[front|back]: Enhance discard	support with secure erasing support., Konrad Rzeszutek Wilk
 
 
[Xen-devel] [PATCH 1/3] xen/blkback: Support 'feature-barrier' aka	old-style BARRIER requests., Konrad Rzeszutek Wilk
 |  
  
 | 
    | 
  
  
    |   | 
    |