From: Sagi Grimberg <sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>,
Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH trivial] IB/srp: Allow newline separator for connection string
Date: Tue, 21 Oct 2014 14:01:13 +0300 [thread overview]
Message-ID: <54463CF9.6070706@dev.mellanox.co.il> (raw)
In-Reply-To: <54452561.1050508-HInyCGIudOg@public.gmane.org>
On 10/20/2014 6:08 PM, Bart Van Assche wrote:
> On 10/19/14 17:19, Sagi Grimberg wrote:
>> In case last argument of the connection string is
>> processed as a string (destination gid for example).
>>
>> Signed-off-by: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>> ---
>> drivers/infiniband/ulp/srp/ib_srp.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/infiniband/ulp/srp/ib_srp.c
>> b/drivers/infiniband/ulp/srp/ib_srp.c
>> index 62d2a18..5f590cf 100644
>> --- a/drivers/infiniband/ulp/srp/ib_srp.c
>> +++ b/drivers/infiniband/ulp/srp/ib_srp.c
>> @@ -2760,7 +2760,7 @@ static int srp_parse_options(const char *buf,
>> struct srp_target_port *target)
>> return -ENOMEM;
>>
>> sep_opt = options;
>> - while ((p = strsep(&sep_opt, ",")) != NULL) {
>> + while ((p = strsep(&sep_opt, ",\n")) != NULL) {
>> if (!*p)
>> continue;
>
> Hello Sagi,
>
> It has already happened that users were confused by a write into the
> "add_target" sysfs attribute that failed because of a newline not being
> accepted as a separator. This patch will avoid such confusion so I think
> it's an improvement. Hence,
>
I would consider it a minor bug fix (and CC it to stable).
Sagi.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-10-21 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-19 15:19 [PATCH trivial] IB/srp: Allow newline separator for connection string Sagi Grimberg
[not found] ` <1413731942-3317-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-10-20 15:08 ` Bart Van Assche
[not found] ` <54452561.1050508-HInyCGIudOg@public.gmane.org>
2014-10-21 11:01 ` Sagi Grimberg [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=54463CF9.6070706@dev.mellanox.co.il \
--to=sagig-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=bvanassche-HInyCGIudOg@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.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.