Re: RFC [PATCH] Implement PERSISTENT RESERVE IN/OUT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 20 Aug 2008 22:08:02 +0200
Arne Redlich <agr@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux