bread & bottom halves in SMP

From: P.Basker (basker_p@bbv.satyam.com)
Date: Mon Jun 19 2000 - 08:47:39 EST


Hi,
        Im running 6.2 RH (2.2.14 smp ) on Intel SMP and non SMP machines
with PII and PIII
        Ive written a small kernel module which executes the following
operations in the tq_scheduler bottom halves. I suppose they are safe
enough. But if Im wrong please correct me. Here is the pseudocode ( not c)

        void task(void) {
                if (current == "kswapd" || current == "kupdated"...etc) {
                        queue task again
                        exit
                }
                for(i=0;i<100;i++){
                        bh = bread();
                        invoke an rpc call to send the bh->b_data
                }
                queue task again;
        }

This code worked well in non-smp machines but stumbles badly in SMP ones
. Please Guide me ? SMP crash leaves me no clues it simply either freezes
or gives oops which never appeares in /var/log/messages

                                Animesh & Basker

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



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:16 EST