[9050] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

bread & bottom halves in SMP

daemon@ATHENA.MIT.EDU (P.Basker)
Wed Jun 21 10:39:14 2000

Date:	Wed, 21 Jun 2000 20:02:24 +0530 (IST)
From: "P.Basker" <basker_p@bbv.satyam.com>
To: linux-scsi@vger.rutgers.edu
Message-ID: <Pine.LNX.4.21.0006212002110.4927-100000@archimedes.bbv.satyam.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello All,

	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

Please CC to me as Im not on this list.

				Animesh & Basker 







-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post