2002-08-23 17:54:30

by Clemens Fruhwirth

[permalink] [raw]
Subject: Does IRQ code touch FS code? (2.4.x)

Hi!

As Marcello isn't sure if he should change the IV metric in 2.4.x/loop.c, I
decided to circumvent the problem with an ugly hack.
My hack (for cryptoloop of cryptoapi) depends on the fact that
blksize[MAJOR_LOOP][SOME_MINOR] does not change within the loop thread.

The loop thread, however, runs with IRQs enabled. So IRQ handler code might
break my assumption that blksize[..] does not change. As far as I can see
there is just fs code which touches blksize. So my question is:

Is IRQ code allowed to touch FS code?

I hope some kernel wizard can clarify that issue for me. My guess is, that
IRQ code is not allowed to touch FS code, since FS code makes liberal use
of schedule(), which is forbidden for IRQ code.

Thanks, Clemens

Please CC.


Attachments:
(No filename) (754.00 B)
(No filename) (232.00 B)
Download all attachments