sg updates break fasync changes

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Tue Jun 06 2000 - 15:38:38 EST


Hi Alan,

the prototype of kill_fasync has changed, and the sg updates used the
old prototype:

old & not SMP safe:

        if(foo->fasync_ptr)
                kill_fasync(foo->fasync_ptr,,);

new:

        kill_fasync(&foo->fasync_ptr,,);

Could you apply the attached patch?

--
	Manfred

--- 2.3/drivers/scsi/sg.c Tue Jun 6 18:38:13 2000 +++ build-2.3/drivers/scsi/sg.c Tue Jun 6 22:33:09 2000 @@ -1089,8 +1089,7 @@ if (sfp && srp) { /* Now wake up any sg_read() that is waiting for this packet. */ wake_up_interruptible(&sfp->read_wait); - if (sfp->async_qp) - kill_fasync(sfp->async_qp, SIGPOLL, POLL_IN); + kill_fasync(&sfp->async_qp, SIGPOLL, POLL_IN); } }

- 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 : Wed Jun 07 2000 - 21:00:26 EST