Re: [1/1] Export __lock_page_killable()

Previous thread: 2.6.26-rc1 sound regression by Wolfgang Erig on Wednesday, May 14, 2008 - 6:07 am. (4 messages)

Next thread: [GIT PATCHES] V4L/DVB fixes for 2.6.26 by Mauro Carvalho Chehab on Wednesday, May 14, 2008 - 7:49 am. (11 messages)
From: Evgeniy Polyakov
Date: Wednesday, May 14, 2008 - 7:11 am

Hi.

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.

Not that it is particulary needed, but copying page_waitqueue() in
modules is frowned upon and unlikely to be exported either.

As a side note, do we want interruptible and time limited locking for
those who knows what is being done?

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>

diff --git a/mm/filemap.c b/mm/filemap.c
index 07e9d92..0a4fea5 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -610,6 +610,7 @@ int __lock_page_killable(struct page *page)
 	return __wait_on_bit_lock(page_waitqueue(page), &wait,
 					sync_page_killable, TASK_KILLABLE);
 }
+EXPORT_SYMBOL(__lock_page_killable);
 
 /**
  * __lock_page_nosync - get a lock on the page, without calling sync_page()


-- 
	Evgeniy Polyakov
--

From: Alan Cox
Date: Wednesday, May 14, 2008 - 7:13 am

On Wed, 14 May 2008 18:11:58 +0400

Missing information #1: Who are the users and what are the URLs to the


_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 ;)
--

From: Evgeniy Polyakov
Date: Wednesday, May 14, 2008 - 7:32 am

Hi Alan.


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:

I copied page_waitqueue() and use wait_on_bit() logic myself.

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
--

From: Andrew Morton
Date: Wednesday, May 14, 2008 - 11:04 am

Yes, I think it's a reasonable thing to export.  We could do it
now as part of a "make the API complete" exercise but more typically
we'd do it when merging code which needs that export.
--

Previous thread: 2.6.26-rc1 sound regression by Wolfgang Erig on Wednesday, May 14, 2008 - 6:07 am. (4 messages)

Next thread: [GIT PATCHES] V4L/DVB fixes for 2.6.26 by Mauro Carvalho Chehab on Wednesday, May 14, 2008 - 7:49 am. (11 messages)