On 30/09/2019 11:35, Christoph Hellwig wrote: > On Mon, Sep 30, 2019 at 11:25:49AM +0300, Pavel Begunkov (Silence) wrote: >> From: Pavel Begunkov <asml.silence@xxxxxxxxx> >> >> blk_mq_request_completed() and blk_mq_request_started() are >> short, inline it. >> >> Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> >> --- >> block/blk-mq.c | 12 ------------ >> block/blk-mq.h | 9 --------- >> include/linux/blk-mq.h | 20 ++++++++++++++++++-- >> 3 files changed, 18 insertions(+), 23 deletions(-) >> >> diff --git a/block/blk-mq.c b/block/blk-mq.c >> index 279b138a9e50..d97181d9a3ec 100644 >> --- a/block/blk-mq.c >> +++ b/block/blk-mq.c >> @@ -647,18 +647,6 @@ bool blk_mq_complete_request(struct request *rq) >> } >> EXPORT_SYMBOL(blk_mq_complete_request); >> >> -int blk_mq_request_started(struct request *rq) >> -{ >> - return blk_mq_rq_state(rq) != MQ_RQ_IDLE; >> -} >> -EXPORT_SYMBOL_GPL(blk_mq_request_started); >> - >> -int blk_mq_request_completed(struct request *rq) >> -{ >> - return blk_mq_rq_state(rq) == MQ_RQ_COMPLETE; >> -} >> -EXPORT_SYMBOL_GPL(blk_mq_request_completed); > > How about just killing these helpers instead? > I'm not sure that this is better. That's more intrusive and blk_mq_request_started() looks clearer than (blk_mq_rq_state(rq) != MQ_RQ_IDLE). Anyway, I've sent v2 and fine with both. -- Yours sincerely, Pavel Begunkov
Attachment:
signature.asc
Description: OpenPGP digital signature