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

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Aug 27 08:46:20 CEST 2008


On Wed, 20 Aug 2008 22:08:02 +0200
Arne Redlich <agr at powerkom-dd.de> wrote:

> > +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:

I guess that we might need a hash table plus something.

I don't care much about the PR performance (for now at least) as long
as users who don't use PR don't suffer performance drop.
--
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