Santosh Nayak
50ec5babd3
[SCSI] pm8001: Fix possible racing condition.
...
There is a possble racing scenario.
'process_oq' is called by two routines, as shown below.
pm8001_8001_dispatch = {
.......
.isr = pm8001_chip_isr --> process_oq,// A
.isr_process_oq = process_oq, // B
.....
}
process_oq() --> process_one_iomb() --> mpi_sata_completion()
In 'mpi_sata_completion', "pm8001_ha->lock" is first released.
It means lock is taken before, which is true for
the context A, as 'pm8001_ha->lock' is taken in 'pm8001_chip_isr()'
But for context B there is no lock taken before and pm8001_ha->lock
is unlocked in 'mpi_sata_completion()'. This may unlock the lock
taken in context A. Possible racing ??
If 'pm8001_ha->lock' is taken in 'process_oq()' instead of
'pm8001_chip_isr' then the above issue can be avoided.
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-02-29 16:52:59 -06:00
..
2012-02-19 08:09:01 -06:00
2011-12-02 14:57:31 +01:00
2011-03-31 11:26:23 -03:00
2012-02-29 15:42:51 -06:00
2011-05-01 16:32:23 -05:00
2011-03-31 11:26:23 -03:00
2012-01-10 10:36:08 -08:00
2012-02-19 08:09:01 -06:00
2012-02-19 08:08:59 -06:00
2012-02-19 08:09:01 -06:00
2012-02-19 08:09:00 -06:00
2012-01-10 17:01:24 -06:00
2011-07-26 16:49:47 -07:00
2012-02-19 09:25:41 -06:00
2011-06-29 16:05:41 -05:00
2011-06-29 12:08:39 -05:00
2012-02-29 16:24:41 -06:00
2012-02-19 09:27:26 -06:00
2012-02-29 15:42:51 -06:00
2012-02-19 08:08:54 -06:00
2012-01-16 11:28:33 +04:00
2012-02-19 10:04:33 -06:00
2012-02-29 15:35:41 -06:00
2011-10-31 19:31:24 -04:00
2012-01-13 09:32:20 +10:30
2012-02-29 16:52:59 -06:00
2012-02-29 16:47:13 -06:00
2012-02-19 09:36:01 -06:00
2012-01-10 17:01:18 -06:00
2011-09-26 09:28:58 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-12-22 18:57:02 +01:00
2011-10-31 19:31:24 -04:00
2011-10-31 19:31:24 -04:00
2011-03-31 11:26:23 -03:00
2011-06-29 15:09:11 -05:00
2012-01-13 09:32:20 +10:30
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-06-29 15:11:21 -05:00
2011-06-29 15:11:21 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-10-22 10:52:56 -07:00
2011-05-23 09:12:26 -07:00
2012-01-13 09:32:20 +10:30
2011-03-31 11:26:23 -03:00
2011-05-01 10:22:40 -05:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-05-01 10:22:40 -05:00
2011-05-23 09:12:26 -07:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-12-31 09:50:09 -06:00
2010-12-31 09:50:09 -06:00
2011-12-06 09:53:40 +01:00
2011-10-31 19:31:24 -04:00
2011-10-30 13:20:28 +04:00
2012-02-19 08:08:56 -06:00
2012-02-19 09:40:51 -06:00
2012-02-19 08:08:55 -06:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-05-26 13:19:00 -07:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-02-29 16:48:27 -06:00
2012-02-29 16:48:27 -06:00
2011-12-02 14:57:31 +01:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:54:55 -05:00
2012-02-19 08:09:00 -06:00
2011-02-24 12:41:10 -05:00
2012-01-02 13:04:55 +01:00
2012-02-19 09:50:20 -06:00
2012-02-19 08:09:00 -06:00
2012-02-19 08:09:00 -06:00
2011-10-31 19:31:24 -04:00
2011-10-31 19:31:24 -04:00
2012-01-22 14:50:03 +01:00
2012-01-26 12:43:57 -08:00
2012-02-19 09:50:20 -06:00
2012-01-16 12:28:03 +04:00
2011-03-31 11:26:23 -03:00
2011-05-01 10:22:40 -05:00
2011-08-27 08:36:58 -06:00
2011-08-27 08:36:58 -06:00
2011-05-01 10:22:40 -05:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-05-10 10:16:21 +02:00
2012-01-13 09:32:20 +10:30
2011-03-31 11:26:23 -03:00
2011-05-24 13:09:41 -04:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-12-15 16:35:38 +01:00
2011-09-15 14:57:07 +02:00
2010-11-16 13:33:23 -08:00
2011-10-31 19:31:24 -04:00
2011-05-01 10:22:40 -05:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-10-16 10:58:52 -05:00
2012-02-19 10:14:52 -06:00
2011-06-29 15:08:47 -05:00
2012-02-19 10:14:52 -06:00
2011-10-31 19:31:23 -04:00
2012-02-19 09:38:01 -06:00
2012-01-14 18:36:33 -08:00
2012-02-18 08:54:19 -06:00
2012-02-18 08:54:19 -06:00
2011-05-28 23:12:11 -07:00
2012-02-18 08:52:48 -06:00
2011-08-27 08:36:46 -06:00
2011-10-31 19:31:23 -04:00
2011-05-01 10:20:10 -05:00
2011-05-24 12:38:36 -04:00
2012-02-19 08:08:57 -06:00
2012-02-19 09:34:50 -06:00
2012-02-29 15:43:54 -06:00
2012-01-03 22:54:55 -05:00
2012-02-19 10:14:52 -06:00
2012-01-03 22:54:07 -05:00
2010-10-15 15:49:20 +02:00
2012-02-19 10:14:52 -06:00
2012-02-19 10:14:52 -06:00
2011-06-29 12:14:25 -05:00
2012-01-16 12:17:29 +04:00
2011-04-06 06:19:38 -07:00
2012-01-02 13:04:55 +01:00
2011-10-31 19:31:24 -04:00
2011-07-21 14:15:58 -07:00
2011-07-21 14:15:58 -07:00
2012-02-19 08:08:51 -06:00
2010-11-16 13:33:23 -08:00
2011-06-29 15:15:05 -05:00
2011-06-29 15:14:54 -05:00
2011-06-29 15:14:54 -05:00
2010-11-16 13:33:23 -08:00
2011-02-28 01:36:39 -07:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-05-01 10:22:40 -05:00
2011-05-24 13:25:35 -04:00
2010-11-16 13:33:23 -08:00
2012-02-19 09:50:20 -06:00
2011-12-02 14:57:31 +01:00
2011-05-26 13:19:00 -07:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00