* lock_kiovec question
@ 2001-09-29 9:09 Manfred Spraul
2001-09-29 17:51 ` Benjamin LaHaise
2001-10-03 16:30 ` Stephen C. Tweedie
0 siblings, 2 replies; 3+ messages in thread
From: Manfred Spraul @ 2001-09-29 9:09 UTC (permalink / raw)
To: linux-kernel
lock_kiovec tries to lock each page in the kiovec, and fails if it can't
lock one of the pages.
What if the zero page is mapped multiple times in the kiobuf?
AFAICS map_user_pages doesn't break zero page mappings if it's called
with rw==WRITE (i.e write to disk, read from kiobuf)
--
Manfred
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lock_kiovec question
2001-09-29 9:09 lock_kiovec question Manfred Spraul
@ 2001-09-29 17:51 ` Benjamin LaHaise
2001-10-03 16:30 ` Stephen C. Tweedie
1 sibling, 0 replies; 3+ messages in thread
From: Benjamin LaHaise @ 2001-09-29 17:51 UTC (permalink / raw)
To: Manfred Spraul; +Cc: linux-kernel
On Sat, Sep 29, 2001 at 11:09:03AM +0200, Manfred Spraul wrote:
> lock_kiovec tries to lock each page in the kiovec, and fails if it can't
> lock one of the pages.
lock_kiovec is dead code and should be deleted.
-ben
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lock_kiovec question
2001-09-29 9:09 lock_kiovec question Manfred Spraul
2001-09-29 17:51 ` Benjamin LaHaise
@ 2001-10-03 16:30 ` Stephen C. Tweedie
1 sibling, 0 replies; 3+ messages in thread
From: Stephen C. Tweedie @ 2001-10-03 16:30 UTC (permalink / raw)
To: Manfred Spraul; +Cc: linux-kernel, Stephen Tweedie
Hi,
On Sat, Sep 29, 2001 at 11:09:03AM +0200, Manfred Spraul wrote:
> lock_kiovec tries to lock each page in the kiovec, and fails if it can't
> lock one of the pages.
>
> What if the zero page is mapped multiple times in the kiobuf?
Don't Do That then. lock_kiobuf can be called if some caller really
wants the kiobuf pages locked, but kiobuf page mapping is much cleaner
in 2.4 than it had to be in 2.2 and there's no need to keep pages
locked during the mapping. raw IO doesn't ever use lock_kiobuf in
2.4.
> AFAICS map_user_pages doesn't break zero page mappings if it's called
> with rw==WRITE (i.e write to disk, read from kiobuf)
Correct. The raw IO code for 2.2 had to exempt zero pages from
locking for this reason.
Cheers,
Stephen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-03 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-29 9:09 lock_kiovec question Manfred Spraul
2001-09-29 17:51 ` Benjamin LaHaise
2001-10-03 16:30 ` Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox