diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-01-10 11:34:25 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-10 11:47:53 -0700 |
commit | e14575b3d457f5806d79b85886ef94d9c29e3b2a (patch) | |
tree | bf1a6137b1e38ece55196da485e5c97bdc711ea4 /block/blk-core.c | |
parent | 0a72e7f44964b9ada3e5c15820372e9cb119bf80 (diff) | |
download | linux-e14575b3d457f5806d79b85886ef94d9c29e3b2a.tar.gz linux-e14575b3d457f5806d79b85886ef94d9c29e3b2a.tar.bz2 linux-e14575b3d457f5806d79b85886ef94d9c29e3b2a.zip |
block: convert REQ_ATOM_COMPLETE to stealing rq->__deadline bit
We only have one atomic flag left. Instead of using an entire
unsigned long for that, steal the bottom bit of the deadline
field that we already reserved.
Remove ->atomic_flags, since it's now unused.
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index f843ae4f858d..7ba607527487 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2853,7 +2853,7 @@ void blk_start_request(struct request *req) wbt_issue(req->q->rq_wb, &req->issue_stat); } - BUG_ON(test_bit(REQ_ATOM_COMPLETE, &req->atomic_flags)); + BUG_ON(blk_rq_is_complete(req)); blk_add_timer(req); } EXPORT_SYMBOL(blk_start_request); |