Re: [PATCH v4 1/2] SCSI: Asynchronous event notification infrastructure

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: LKML <linux-kernel@...>, Linux-SCSI <linux-scsi@...>, <akpm@...>
Date: Monday, October 29, 2007 - 12:17 pm

On Mon, 2007-10-29 at 12:07 -0400, Jeff Garzik wrote:

OK, take me through it slowly then ... I think schedule_work(work)
inserts work->entry onto the workqueue list (in
workqueue.c:insert_work()).  If the event hasn't fired, it will already
be on the list, so adding the same entry to a list twice causes a list
corruption problem.

Plus, unfortunately, the CC/UA events are going to have to carry extra
sense data; they're not simply going to be triggers saying something
happened.

James


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v4 1/2] SCSI: Asynchronous event notification inf..., James Bottomley, (Mon Oct 29, 12:17 pm)