Allocated stream identifier (alloc_id) nor closed stream_id has never
been deallocated in the STREAM_CLOSE path, causing issues when closed
stream was reopened again. This patch fixes that problem.
Signed-off-by: Andrzej Jakowski <andrzej.jakowski@intel.com>
Signed-off-by: Kapil Karkra <kapil.karkra@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
inode->i_streamid = 0;
spin_unlock(&inode->i_lock);
}
+ bdi_streamid(f.file->f_mapping->host, STREAMID_CLOSE, alloc_id);
+ bdi_streamid(f.file->f_mapping->host, STREAMID_CLOSE, streamid);
}
done: