From: David Disseldorp <ddiss@suse.de>
To: target-devel@vger.kernel.org
Subject: Re: [PATCH v4] target: add emulate_pr backstore attr to toggle PR support
Date: Wed, 07 Nov 2018 11:11:40 +0000 [thread overview]
Message-ID: <20181107121140.5fa72d1f@suse.de> (raw)
In-Reply-To: <20181030142643.17458-1-ddiss@suse.de>
On Tue, 6 Nov 2018 19:54:17 -0600, Mike Christie wrote:
> > - return snprintf(page, PAGE_SIZE, "%d\n",
> > - flags & TRANSPORT_FLAG_PASSTHROUGH_PGR ? 0 : 1);
> > + if (!da->da_dev->dev_attrib.emulate_pr ||
> > + (flags & TRANSPORT_FLAG_PASSTHROUGH_PGR))
> > + pgr_support = 0;
> > +
>
> I think we want to keep this separate still. The file tells userspace if
> PRs are supported in the backend module/device or in LIO core.
>
> With the chunk above, if you had emulate_pr=0 and
> TRANSPORT_FLAG_PASSTHROUGH_PGR is set, userspace cannot detect what the
> backend supports. We would have to temporarily set emaulate_pr sow e can
> read the file then clear it.
Agreed, that'd be awkward and is unnecessary given the presence of both
configfs attributes. I'll send a new version which drops this hunk.
Cheers, David
prev parent reply other threads:[~2018-11-07 11:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-30 14:26 [PATCH v4] target: add emulate_pr backstore attr to toggle PR support David Disseldorp
2018-11-07 1:54 ` Mike Christie
2018-11-07 11:11 ` David Disseldorp [this message]
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=20181107121140.5fa72d1f@suse.de \
--to=ddiss@suse.de \
--cc=target-devel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.