From: Jens Axboe <axboe@kernel.dk>
To: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Cc: Paolo Valente <paolo.valente@linaro.org>,
linux-block@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>,
Arianna Avanzini <avanzini.arianna@gmail.com>
Subject: Re: [PATCH] block, bfq: return nbytes and not zero from struct cftype .write() method
Date: Fri, 17 Aug 2018 11:38:57 -0600 [thread overview]
Message-ID: <cb3a6209-9474-2b4d-1ff8-2e2f7c3367fb@kernel.dk> (raw)
In-Reply-To: <1f2ca124-bb7c-d02c-07cd-4afe6a634ee6@maciej.szmigiero.name>
On 8/17/18 11:27 AM, Maciej S. Szmigiero wrote:
> On 16.08.2018 21:11, Jens Axboe wrote:
>> On 8/15/18 3:56 PM, Maciej S. Szmigiero wrote:
>>> The value that struct cftype .write() method returns is then directly
>>> returned to userspace as the value returned by write() syscall, so it
>>> should be the number of bytes actually written (or consumed) and not zero.
>>>
>>> Returning zero from write() syscall makes programs like /bin/echo or bash
>>> spin.
>>
>> Applied, thanks.
>
> Thanks.
>
>> Just a heads-up that gmail thinks your email is spam.
>
> Thanks for the information - it looks like gmail just doesn't like my
> email server for some reason.
This one came through fine, jfyi.
--
Jens Axboe
next prev parent reply other threads:[~2018-08-17 17:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-15 21:56 Maciej S. Szmigiero
2018-08-16 19:11 ` Jens Axboe
2018-08-17 17:27 ` Maciej S. Szmigiero
2018-08-17 17:38 ` Jens Axboe [this message]
2018-08-28 14:38 ` (Was: [PATCH] block, bfq: return nbytes and not zero from struct cftype .write() method) Maciej S. Szmigiero
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=cb3a6209-9474-2b4d-1ff8-2e2f7c3367fb@kernel.dk \
--to=axboe@kernel.dk \
--cc=avanzini.arianna@gmail.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@maciej.szmigiero.name \
--cc=paolo.valente@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome