From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 38B5542062A for ; Sun, 13 Dec 2020 06:07:23 +0100 (CET) Received: by mail-qk1-f195.google.com with SMTP id i67so5179397qkf.11 for ; Sat, 12 Dec 2020 21:07:23 -0800 (PST) From: Michael D Labriola To: drbd-dev@lists.linbit.com Date: Sun, 13 Dec 2020 00:07:00 -0500 Message-Id: <20201213050704.997-5-michael.d.labriola@gmail.com> In-Reply-To: <20201213050704.997-1-michael.d.labriola@gmail.com> References: <20201213050704.997-1-michael.d.labriola@gmail.com> Subject: [Drbd-dev] [PATCH 4/8] drbd: fix drbd_submit_bio argument handling List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Looks like we changed arguments from q to bio, but left the line that gets device from q untouched. Oopsie. Signed-off-by: Michael D Labriola --- drbd/drbd_req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drbd/drbd_req.c b/drbd/drbd_req.c index 8db2a0e0..92b3b863 100644 --- a/drbd/drbd_req.c +++ b/drbd/drbd_req.c @@ -2196,7 +2196,7 @@ static bool drbd_fail_request_early(struct drbd_device *device, struct bio *bio) blk_qc_t drbd_submit_bio(struct bio *bio) { - struct drbd_device *device = (struct drbd_device *) q->queuedata; + struct drbd_device *device = bio->bi_disk->private_data; #ifdef CONFIG_DRBD_TIMING_STATS ktime_t start_kt; #endif -- 2.17.1