提交 a67549c8 编写于 作者: L Luis Chamberlain 提交者: Jens Axboe

blktrace: annotate required lock on do_blk_trace_setup()

Ensure it is clear which lock is required on do_blk_trace_setup().
Suggested-by: NBart Van Assche <bvanassche@acm.org>
Signed-off-by: NLuis Chamberlain <mcgrof@kernel.org>
Reviewed-by: NBart Van Assche <bvanassche@acm.org>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 e8c7d14a
......@@ -483,6 +483,8 @@ static int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
struct dentry *dir = NULL;
int ret;
lockdep_assert_held(&q->blk_trace_mutex);
if (!buts->buf_size || !buts->buf_nr)
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册