From: Roland Kammerer <roland.kammerer@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [Patch v0 2/8] Adapt pointer backing_dev_info in struct request_queue
Date: Thu, 9 Mar 2017 11:27:07 +0100 [thread overview]
Message-ID: <20170309102707.GB18615@rck.sh> (raw)
In-Reply-To: <1488857279-29079-3-git-send-email-nwang@suse.com>
On Tue, Mar 07, 2017 at 11:27:53AM +0800, Nick Wang wrote:
> In dc3b17cc, struct request_queue use pointer to backing_dev_info,
> so all related call should be converted.
>
> This patch is for drbd-kernel-compat
>
> Signed-off-by: Nick Wang <nwang@suse.com>
> CC: Philipp Reisner <philipp.reisner@linbit.com>
> CC: Lars Ellenberg <lars.ellenberg@linbit.com>
> CC: drbd-dev@lists.linbit.com
>
> ---
> drbd_wrappers.h | 5 +++++
> tests/have_pointer_backing_dev_info.c | 7 +++++++
> 2 files changed, 12 insertions(+)
> create mode 100644 tests/have_pointer_backing_dev_info.c
>
> diff --git a/drbd_wrappers.h b/drbd_wrappers.h
> index 0489e7f..778a6fd 100644
> --- a/drbd_wrappers.h
> +++ b/drbd_wrappers.h
> @@ -888,6 +888,11 @@ static inline void blk_queue_write_cache(struct request_queue *q, bool enabled,
> #endif
> #endif
>
> +#ifdef COMPAT_HAVE_POINTER_BACKING_DEV_INFO
> +#define bdi_rw_congested(B) bdi_rw_congested(*(B))
> +#define bdi_congested(B, C) bdi_congested(*(B), C)
> +#endif
> +
We do compat work the other way round. The goal is to have our
out-of-tree code as close as possible to linux upstream. Otherwise we
would "get stuck" at the old paradigms.
In that specific case it actually means to change drbd_debugfs.c in a
way that it looks like linux upstream (basically removing the '&') and
provide compat #defines for older kernels.
Regards, rck
next prev parent reply other threads:[~2017-03-09 10:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 3:27 [Drbd-dev] [Patch v0 0/8] Patches for compat drbd9 to kernel v4.10 Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 1/8] Remove bio_set_op_attrs Nick Wang
2017-03-07 3:37 ` Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 2/8] Adapt pointer backing_dev_info in struct request_queue Nick Wang
2017-03-09 10:27 ` Roland Kammerer [this message]
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 3/8] " Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 4/8] Use refcount_t 'atomic' type to implement struct kref Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 5/8] Use refcount_t 'atomic' type to implement structref Nick Wang
2017-03-09 10:33 ` Roland Kammerer
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 6/6] Statically initialize families Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 7/8] " Nick Wang
2017-03-07 3:27 ` [Drbd-dev] [Patch v0 8/8] " Nick Wang
2017-03-09 9:21 ` [Drbd-dev] [Patch v0 0/8] Patches for compat drbd9 to kernel v4.10 Lars Ellenberg
2017-03-09 10:22 ` Roland Kammerer
2017-03-10 3:48 ` Nick Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170309102707.GB18615@rck.sh \
--to=roland.kammerer@linbit.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox