[PATCH] as-iosched: remove arq->is_sync member

We can track this in struct request.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
This commit is contained in:
Jens Axboe
2006-07-28 09:26:13 +02:00
committed by Jens Axboe
parent d4f2f4629e
commit 9e2585a8a2
2 changed files with 19 additions and 22 deletions

View File

@ -531,6 +531,11 @@ enum {
#define rq_data_dir(rq) ((rq)->cmd_flags & 1)
/*
* We regard a request as sync, if it's a READ or a SYNC write.
*/
#define rq_is_sync(rq) (rq_data_dir((rq)) == READ || (rq)->cmd_flags & REQ_RW_SYNC)
static inline int blk_queue_full(struct request_queue *q, int rw)
{
if (rw == READ)