OSDN Git Service

Staging: west bridge: block driver api fix
authorDavid Cross <david.cross@cypress.com>
Fri, 10 Sep 2010 23:52:56 +0000 (16:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Sep 2010 23:52:46 +0000 (16:52 -0700)
This patch contains an update for cyasblkdev_queue.c which is needed for
the kernel update from 2.6.35 to 2.6.36.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c

index 8dc29bd..5cc469a 100644 (file)
@@ -95,7 +95,7 @@ static int cyasblkdev_prep_request(
        DBGPRN_FUNC_NAME;
 
        /* we only like normal block requests.*/
-       if (!blk_fs_request(req)) {
+       if (req->cmd_type != REQ_TYPE_FS && !(req->cmd_flags & REQ_DISCARD)) {
                #ifndef WESTBRIDGE_NDEBUG
                cy_as_hal_print_message("%s:%x bad request received\n",
                        __func__, current->pid) ;