block: skip elevator data initialization for flush requests
authorMike Snitzer <snitzer@redhat.com>
Fri, 11 Feb 2011 10:05:46 +0000 (11:05 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 11 Feb 2011 10:05:46 +0000 (11:05 +0100)
commit9d5a4e946ce5352f19400b6370f4cd8e72806278
treeba62a2ab56da1f943b0dbcae527c70b817a104de
parentae1b1539622fb46e51b4d13b3f9e5f4c713f86ae
block: skip elevator data initialization for flush requests

Skip elevator initialization for flush requests by passing priv=0 to
blk_alloc_request() in get_request().  As such elv_set_request() is
never called for flush requests.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c