]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] aacraid: aif registration timeout fix
authorMark Haverkamp <markh@osdl.org>
Wed, 3 Aug 2005 22:39:25 +0000 (15:39 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 5 Aug 2005 21:52:42 +0000 (16:52 -0500)
commit2f36b5cb5b10a9fdcb211d1c22aa70e22c9f2c14
tree26e6fc63e82f9baf0d615a89a2da9000c85a0cce
parent26e7c18f58744ad9416c954d2dd7c595eeb87829
[SCSI] aacraid: aif registration timeout fix

Received from Mark Salyzyn from Adaptec:

If the Adapter is quiet and does not produce an AIF event packets to be
picked up by the management applications for longer than the timeout
interval of two minutes, the cleanup code that deals with aging out
registrants could erroneously drop the registration. The timeout is
there to clean up should the management application die and fail to poll
for updated AIF event packets.

Moving the timer update from the ioctl code that delivers an AIF to the
polling registrant to the bottom of the ioctl means the timeout is reset
with any management application polling activity regardless if an AIF is
delivered or not removing the erroneous timeout cleanups.

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/commctrl.c