[stgt] RFC [PATCH] Implement PERSISTENT RESERVE IN/OUT

Arne Redlich agr at powerkom-dd.de
Thu Aug 21 08:16:47 CEST 2008


Am Mittwoch, den 20.08.2008, 22:08 +0200 schrieb Arne Redlich:

> > +struct scsi_pr {
> > +	/* Persistent Reservation Generation */
> > +	uint32_t PRgeneration;
> > +	uint8_t pr_key[PR_RESERVATION_SZ][PR_KEY_SZ];
> > +};
> > +
> 
> Too bad the most interesting part is missing - an efficient way to
> lookup the registered keys. I could imagine using a hashtable, but then
> again finding a good hash function is not easy - (u64)key % tablesize
> possibly? So:
^^^^^^^^^^
Sigh - hashing over the itn_id might make more sense, of course. :)

Arne

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list