X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=block%2Fblk-mq.h;h=a7482d2cc82e721a4c1acf8a0884b22ae9e195ac;hb=be689c719eb6153b0fbd83536ae656dca8981f12;hp=ef59fee62780d301d4756000e660464078a6eaa2;hpb=fc471e831016c1741f3e8042997969ace0b5a013;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/block/blk-mq.h b/block/blk-mq.h index ef59fee..a7482d2c 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -378,12 +378,13 @@ static inline bool hctx_may_queue(struct blk_mq_hw_ctx *hctx, #define __blk_mq_run_dispatch_ops(q, check_sleep, dispatch_ops) \ do { \ if ((q)->tag_set->flags & BLK_MQ_F_BLOCKING) { \ + struct blk_mq_tag_set *__tag_set = (q)->tag_set; \ int srcu_idx; \ \ might_sleep_if(check_sleep); \ - srcu_idx = srcu_read_lock((q)->tag_set->srcu); \ + srcu_idx = srcu_read_lock(__tag_set->srcu); \ (dispatch_ops); \ - srcu_read_unlock((q)->tag_set->srcu, srcu_idx); \ + srcu_read_unlock(__tag_set->srcu, srcu_idx); \ } else { \ rcu_read_lock(); \ (dispatch_ops); \