Files
twx-linux/drivers/scsi
Hannes Reinecke b7571624fe scsi: sg: reset 'res_in_use' after unlinking reserved array
commit e791ce27c3 upstream.

Once the reserved page array is unused we can reset the 'res_in_use'
state; here we can do a lazy update without holding the mutex as we only
need to check against concurrent access, not concurrent release.

[mkp: checkpatch]

Fixes: 1bc0eb0446 ("scsi: sg: protect accesses to 'reserved' page array")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-02 07:06:53 +02:00
..
2016-04-12 09:08:39 -07:00
…
2015-11-09 17:11:57 -08:00
…
2015-11-09 17:11:57 -08:00
2017-04-08 09:53:31 +02:00
2017-03-18 19:09:58 +08:00
…
2015-11-12 07:06:18 -05:00
2015-11-12 07:06:18 -05:00
…
…
…
…
…
…
2016-07-27 09:47:39 -07:00
…
…
…
…
…
…
…
…
2015-12-03 09:32:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-09 17:11:57 -08:00
…
…
2015-11-09 16:32:14 -08:00
…
…
…
…
2015-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
2015-11-09 12:39:28 -05:00
…
…
…
…
…
…
…
…
2015-11-09 19:32:41 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-12 07:06:18 -05:00
…
…
…
…
…
2016-10-28 03:01:31 -04:00
2015-11-09 17:11:57 -08:00
…
…
…
…
…
2017-04-21 09:30:05 +02:00
…
2015-12-03 09:32:33 -08:00
…
2015-11-09 17:42:19 -08:00
…
…
…
…
…
…
…
…
…
…