Name

blk_complete_barrier_rq — complete possible barrier request

Synopsis

int blk_complete_barrier_rq (request_queue_t * q, struct request * rq, int sectors);

Arguments

q

the request queue for the device

rq

the request

sectors

number of sectors to complete

Description

Used in driver end_io handling to determine whether to postpone completion of a barrier request until a post flush has been done. This is the unlocked variant, used if the caller doesn't already hold the queue lock.