lkml.org 
[lkml]   [2009]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New TRIM/UNMAP tree published (2009-05-02)
On Sun, 3 May 2009, Matthew Wilcox wrote:
>
> You make a good point. There's definitely still work to be done around
> error handling. OTOH, we could always do what IDE does ...
>
> static void idedisk_prepare_flush(struct request_queue *q, struct request *rq)
> {
> ide_drive_t *drive = q->queuedata;
> struct ide_cmd *cmd = kmalloc(sizeof(*cmd), GFP_ATOMIC);
>
> /* FIXME: map struct ide_taskfile on rq->cmd[] */
> BUG_ON(cmd == NULL);

Oooh, you're winding me up. Certainly not. Off with the Top Of your Head!

Hugh


\
 
 \ /
  Last update: 2009-05-03 17:09    [from the cache]
©2003-2011 Jasper Spaans