From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Richard Weinberger <richard@nod.at>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mtd: add documentation about locking context of MTD API
Date: Mon, 19 Mar 2012 23:51:38 +0100 [thread overview]
Message-ID: <87r4wo8arp.fsf@free.fr> (raw)
In-Reply-To: <4F67B3B8.7090909@nod.at> (Richard Weinberger's message of "Mon, 19 Mar 2012 23:31:20 +0100")
Richard Weinberger <richard@nod.at> writes:
> Am 19.03.2012 23:26, schrieb Robert Jarzmik:
>> Add a comment to mtd header for MTD drivers writters, so that they
>> know that each function in the MTD API, ie. in the mtd_info
>> structure, is called in a sleeping context.
>>
>
> Why do we need this comment?
Because I was asked to, in [1].
> "sleeping" context isn't special, it's the default.
> atomic would be...
Ah, well, maybe. From what I've seen in the usb drivers area, portions of code
are called from interrupts, through hooks. As a driver writer, I'm always
interested to know whether I can msleep() or not.
Cheers.
--
Robert
[1] http://lists.infradead.org/pipermail/linux-mtd/2012-March/040236.html
next prev parent reply other threads:[~2012-03-19 22:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 22:26 [PATCH] mtd: add documentation about locking context of MTD API Robert Jarzmik
2012-03-19 22:31 ` Richard Weinberger
2012-03-19 22:51 ` Robert Jarzmik [this message]
2012-03-20 11:44 ` Artem Bityutskiy
2012-03-21 20:20 ` Robert Jarzmik
2012-03-22 9:37 ` Artem Bityutskiy
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=87r4wo8arp.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
/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