Re: oops if free a locked page

Stephen C. Tweedie (sct@redhat.com)
Wed, 23 Jun 1999 15:00:50 +0100 (BST)


Hi,

On Tue, 22 Jun 1999 10:57:45 -0700 (PDT), Linus Torvalds
<torvalds@transmeta.com> said:

> No, you are NOT allowed to free a locked block. If you do, it's a bug.

> The fact that the page is locked implies that it is going to be unlocked
> by something later.

More than that, if you even so much as remove the locked block/page from
the hash lists, you prevent any future access from discovering the
existing lock on those disk blocks --- a sure invitation to data
corruption.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/