public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [1/1] Export __lock_page_killable()
Date: Wed, 14 May 2008 18:32:15 +0400	[thread overview]
Message-ID: <20080514143214.GA12700@2ka.mipt.ru> (raw)
In-Reply-To: <20080514151356.0cb4abfe@core>

Hi Alan.

On Wed, May 14, 2008 at 03:13:56PM +0100, Alan Cox (alan@lxorguk.ukuu.org.uk) wrote:
> > There are users, who would like to use lock_page_killable() in modules,
> > so far there are no users in kernel, but for consistency it can be
> > exported without them.
> 
> Missing information #1: Who are the users and what are the URLs to the
> code in question

POHMELFS wants to use that in two places: one to lock page in writeback,
another one is about second part of the message - it waits for timeout
or signal or locks the page. If page can not be locked, it performs own
steps, not sleeps forever...

POHMELFS is a high performance network filesystem, homepage for interested
reader:
http://tservice.net.ru/~s0mbre/old/?section=projects&item=pohmelfs
or yesterdays mail to mail lists:
http://lwn.net/Articles/282010/

> > Not that it is particulary needed
> 
> Humm..

I copied page_waitqueue() and use wait_on_bit() logic myself.
Andrew choked with his breakfast when saw that.

> > +EXPORT_SYMBOL(__lock_page_killable);
> 
> _GPL - or better yet this could be added *when* we have an actual in tree
> user who really needs it and can show it is appropriate to export.
> That'll also save Adrian from removing it again ;)

No problem wiht GPL-only exporting, but carring it over the whole
release means no ability to build out-of-tree module.

Actually what I want to hear, is that it is needed or not at all...

-- 
	Evgeniy Polyakov

  reply	other threads:[~2008-05-14 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-14 14:11 [1/1] Export __lock_page_killable() Evgeniy Polyakov
2008-05-14 14:13 ` Alan Cox
2008-05-14 14:32   ` Evgeniy Polyakov [this message]
2008-05-14 18:04     ` Andrew Morton

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=20080514143214.GA12700@2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox